ClaudeCode.Content.MCPToolUseBlock (ClaudeCode v0.36.3)

View Source

Represents an MCP tool use content block within a Claude message.

MCP tool use blocks indicate that Claude wants to invoke a tool provided by an MCP (Model Context Protocol) server.

Summary

Types

t()

@type t() :: %ClaudeCode.Content.MCPToolUseBlock{
  id: String.t(),
  input: any(),
  name: String.t(),
  server_name: String.t(),
  type: :mcp_tool_use
}

Functions

new(data)

@spec new(map()) :: {:ok, t()} | {:error, atom() | {:missing_fields, [atom()]}}