Class: ClaudeAgentSDK::SdkMcpTool
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::SdkMcpTool
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
SDK MCP Tool definition
Instance Attribute Summary collapse
-
#annotations ⇒ Object
Returns the value of attribute annotations.
-
#description ⇒ Object
Returns the value of attribute description.
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#input_schema ⇒ Object
Returns the value of attribute input_schema.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, description:, input_schema:, handler:, annotations: nil) ⇒ SdkMcpTool
constructor
A new instance of SdkMcpTool.
Constructor Details
#initialize(name:, description:, input_schema:, handler:, annotations: nil) ⇒ SdkMcpTool
Returns a new instance of SdkMcpTool.
897 898 899 900 901 902 903 |
# File 'lib/claude_agent_sdk/types.rb', line 897 def initialize(name:, description:, input_schema:, handler:, annotations: nil) @name = name @description = description @input_schema = input_schema @handler = handler @annotations = annotations # MCP tool annotations (e.g., { title: '...', readOnlyHint: true }) end |
Instance Attribute Details
#annotations ⇒ Object
Returns the value of attribute annotations.
895 896 897 |
# File 'lib/claude_agent_sdk/types.rb', line 895 def annotations @annotations end |
#description ⇒ Object
Returns the value of attribute description.
895 896 897 |
# File 'lib/claude_agent_sdk/types.rb', line 895 def description @description end |
#handler ⇒ Object
Returns the value of attribute handler.
895 896 897 |
# File 'lib/claude_agent_sdk/types.rb', line 895 def handler @handler end |
#input_schema ⇒ Object
Returns the value of attribute input_schema.
895 896 897 |
# File 'lib/claude_agent_sdk/types.rb', line 895 def input_schema @input_schema end |
#name ⇒ Object
Returns the value of attribute name.
895 896 897 |
# File 'lib/claude_agent_sdk/types.rb', line 895 def name @name end |