Structs§
- Additional
Working Directory - Additional working directory configuration
- Agent
Tool Progress - Agent tool progress data
- Bash
Progress - Bash tool progress data
- Invoked
Skill - Iteration
Usage - Per-iteration usage from the Anthropic API (server-side tool loops)
- McpHttp
Config - McpProgress
- MCP tool progress data
- McpSse
Config - McpStdio
Config - McpTool
- MCP tool representation from server
- Message
- Permission
Result - Permission result from permission checks
- Query
Chain Tracking - Query chain tracking for nested agent calls
- Query
Result - Repl
Progress - REPL tool progress data
- Skill
Info - Skill
Tool Progress - Skill tool progress data
- Task
Output Progress - Task output progress data
- Token
Usage - Tool
Annotations - Tool annotations for classification
- Tool
Call - A tool call from the model
- Tool
Context - Tool
Definition - Tool
InputJSON Schema - Tool input JSON schema (for MCP tools)
- Tool
Input Schema - Tool
Permission Context - Tool permission context - full context for permission checks
- Tool
Progress - Tool progress with tool use ID
- Tool
Result - Tool
Result Structured - Tool result with structured content (supports tool_reference blocks)
- WebSearch
Progress - Web search progress data
Enums§
- Agent
Event - Agent event types for streaming updates (matches TypeScript behavior)
- Attachment
- Attachments for messages - files, images, etc.
- Compact
Hook Type - Compact hook types
- Compact
Progress Event - Compact progress event types
- Content
Delta - Content delta types for streaming
- Exit
Reason - Exit reasons from the query loop (matches TypeScript Terminal type)
- McpConnection
Status - MCP connection status
- McpServer
Config - MCP server configuration (union type)
- Message
Role - Permission
Behavior - Permission behavior types
- Permission
Mode - Tool permission mode
- Thinking
Config - Thinking configuration for the API (matches TypeScript ThinkingConfig)
- Tool
Progress Data - Tool progress data - enum of all progress types
- Tool
Result Content - Content block within a tool_result — either text or tool_reference
- Validation
Result - Validation result for tool input Source: /data/home/swei/claudecode/openclaudecode/src/Tool.ts
Functions§
- filter_
tool_ progress_ messages - Filter progress messages to only tool progress (not hook progress)
- get_
empty_ tool_ permission_ context - Create empty tool permission context
Type Aliases§
- Tool
Permission Rules BySource - Additional tool permission rules by source