Class: ClaudeAgentSDK::SdkMcpTool

Inherits:
Object
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

SDK MCP Tool definition

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, description:, input_schema:, handler:) ⇒ SdkMcpTool

Returns a new instance of SdkMcpTool.



874
875
876
877
878
879
# File 'lib/claude_agent_sdk/types.rb', line 874

def initialize(name:, description:, input_schema:, handler:)
  @name = name
  @description = description
  @input_schema = input_schema
  @handler = handler
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



872
873
874
# File 'lib/claude_agent_sdk/types.rb', line 872

def description
  @description
end

#handlerObject

Returns the value of attribute handler.



872
873
874
# File 'lib/claude_agent_sdk/types.rb', line 872

def handler
  @handler
end

#input_schemaObject

Returns the value of attribute input_schema.



872
873
874
# File 'lib/claude_agent_sdk/types.rb', line 872

def input_schema
  @input_schema
end

#nameObject

Returns the value of attribute name.



872
873
874
# File 'lib/claude_agent_sdk/types.rb', line 872

def name
  @name
end