You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2ba7496
Browse filesBrowse the repository at this point in the historyBrowse files
return"Submit one or more prompts to the Anthropic Message Batches API for 50%-cost async execution. Returns a batch ID; poll with action=poll to check status."
"description": "submit: send prompts; poll: single status check; wait: poll until the batch reaches a terminal state (with backoff + Retry-After honoring).",
"description": "Prompts to submit (action=submit).",
42
-
},
43
-
"model": map[string]interface{}{
44
-
"type": "string",
45
-
"description": "Model ID (default claude-sonnet-4-20250514).",
46
-
},
47
-
"batch_id": map[string]interface{}{
48
-
"type": "string",
49
-
"description": "Batch ID to poll/wait on.",
50
-
},
51
-
"max_tokens": map[string]interface{}{
52
-
"type": "integer",
53
-
"description": "Max output tokens per request (default 4096).",
54
-
},
55
-
"timeout_seconds": map[string]interface{}{
56
-
"type": "integer",
57
-
"description": "Max seconds to wait (default 600).",
58
-
},
59
-
"poll_interval_seconds": map[string]interface{}{
60
-
"type": "integer",
61
-
"description": "Initial poll interval in seconds (default 2).",
62
-
},
29
+
// Schema returns the typed input schema. Parameters() delegates to it so the
30
+
// two cannot diverge.
31
+
func (BatchExecTool) Schema() ToolSchema {
32
+
returnToolSchema{
33
+
Type: "object",
34
+
Properties: map[string]SchemaProperty{
35
+
"action": {Type: "string", Description: "submit: send prompts; poll: single status check; wait: poll until the batch reaches a terminal state (with backoff + Retry-After honoring).", Enum: []interface{}{"submit", "poll", "wait"}},
return`Structural code search with tree-sitter query patterns. Matches the AST, not text: comments/strings cannot false-positive. Pattern is a tree-sitter query S-expression; use @captures to extract parts. Examples - Go functions: "(function_declaration name: (identifier) @name) @fn" | Go calls of one function: "(call_expression function: (identifier) @callee) @call" | Python defs: "(function_definition name: (identifier) @name) @fn". Language auto-detects per file; restrict with language=go|python|typescript|tsx.`
"description": "Restrict to one language (default: all supported).",
48
-
},
49
-
"limit": map[string]interface{}{
50
-
"type": "integer",
51
-
"minimum": 1,
52
-
"maximum": 200,
53
-
"description": "Maximum matches total (default 30).",
54
-
},
40
+
// Schema returns the typed input schema. Parameters() delegates to it so the
41
+
// two cannot diverge.
42
+
func (CodeMatchTool) Schema() ToolSchema {
43
+
returnToolSchema{
44
+
Type: "object",
45
+
Properties: map[string]SchemaProperty{
46
+
"pattern": {Type: "string", Description: "Tree-sitter query pattern (S-expression). Captures (@name) are returned per match."},
47
+
"path": {Type: "string", Description: "Project directory (default: session working directory)."},
48
+
"language": {Type: "string", Enum: []interface{}{"go", "python", "typescript", "tsx"}, Description: "Restrict to one language (default: all supported)."},
return`Semantic code search over the local code index. Use this instead of Grep when you need to find implementations by meaning, not exact text. Start with limit=5; if results look relevant, use offset to paginate. Set refresh=true to update the index first.`
return"Extract function/type/class signatures from one or more files. Returns a compact outline with line numbers — much cheaper than reading the full file."
"description": "Paths to multiple files. Use instead of file_path to outline several files in one call (max 20).",
37
-
},
31
+
// Schema returns the typed input schema. Parameters() delegates to it so the
32
+
// two cannot diverge.
33
+
func (OutlineTool) Schema() ToolSchema {
34
+
returnToolSchema{
35
+
Type: "object",
36
+
Properties: map[string]SchemaProperty{
37
+
"file_path": {Type: "string", Description: "Path to a single file, relative to the project root (e.g. 'src/main.go')"},
38
+
"file_paths": {Type: "array", Items: &SchemaProperty{Type: "string"}, Description: "Paths to multiple files. Use instead of file_path to outline several files in one call (max 20)."},
0 commit comments