Class: ClaudeAgentSDK::ServerToolUseBlock

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

Overview

Server-side tool use (CLI’s built-in tools that execute server-side rather than as MCP tools — advisor, web_search, code_execution, etc.). Mirrors Python’s ‘ServerToolUseBlock`.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Type

#[], #[]=, from_hash, #initialize, #to_h, wrap

Constructor Details

This class inherits a constructor from ClaudeAgentSDK::Type

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#idObject

Returns the value of attribute id.



187
188
189
# File 'lib/claude_agent_sdk/types.rb', line 187

def id
  @id
end

#inputObject

Returns the value of attribute input.



187
188
189
# File 'lib/claude_agent_sdk/types.rb', line 187

def input
  @input
end

#nameObject

Returns the value of attribute name.



187
188
189
# File 'lib/claude_agent_sdk/types.rb', line 187

def name
  @name
end