| { |
| "source": "/Users/j/src/swival/swival/tools.py", |
| "tools": [ |
| { |
| "name": "a2a__reviewer", |
| "description": "Representative dynamic Swival integration tool.", |
| "required": [ |
| "message" |
| ], |
| "properties": [ |
| "message", |
| "context_id", |
| "task_id" |
| ] |
| }, |
| { |
| "name": "check_subagents", |
| "description": "Runtime conditional Swival subagent tool.", |
| "required": [ |
| "action" |
| ], |
| "properties": [ |
| "action", |
| "subagent_id", |
| "timeout" |
| ] |
| }, |
| { |
| "name": "complete_goal", |
| "description": "Mark the active goal complete. ONLY call this after running a completion audit that maps every explicit requirement in the objective to real evidence in the workspace (files, command output, test results). If you are blocked or need user input, do NOT call this \u2014 return final text explaining the blocker instead.", |
| "required": [], |
| "properties": [] |
| }, |
| { |
| "name": "delete_file", |
| "description": "Delete a file by moving it to the trash. Cannot delete directories.", |
| "required": [ |
| "file_path" |
| ], |
| "properties": [ |
| "file_path" |
| ] |
| }, |
| { |
| "name": "edit_file", |
| "description": "Replace old_string with new_string in an existing file. Prefer over write_file for edits.", |
| "required": [ |
| "file_path", |
| "old_string", |
| "new_string" |
| ], |
| "properties": [ |
| "checksum", |
| "file_path", |
| "line_number", |
| "new_string", |
| "old_string", |
| "replace_all" |
| ] |
| }, |
| { |
| "name": "fetch_url", |
| "description": "GET an HTTP/HTTPS URL, returned as markdown, text, or html.", |
| "required": [ |
| "url" |
| ], |
| "properties": [ |
| "format", |
| "timeout", |
| "url" |
| ] |
| }, |
| { |
| "name": "grep", |
| "description": "Search file contents with a Python regex. Returns matches grouped by file with line numbers.", |
| "required": [ |
| "pattern" |
| ], |
| "properties": [ |
| "case_insensitive", |
| "context_lines", |
| "include", |
| "path", |
| "pattern" |
| ] |
| }, |
| { |
| "name": "list_files", |
| "description": "Recursively list files matching a glob, relative to the base directory.", |
| "required": [ |
| "pattern" |
| ], |
| "properties": [ |
| "path", |
| "pattern" |
| ] |
| }, |
| { |
| "name": "mcp__docs__search", |
| "description": "Representative dynamic Swival integration tool.", |
| "required": [ |
| "query" |
| ], |
| "properties": [ |
| "query", |
| "limit" |
| ] |
| }, |
| { |
| "name": "outline", |
| "description": "Show classes, functions, and top-level declarations with line numbers (no bodies). Survey code before reading specific sections. Pass file_path for one file or directory, or files for a batch.", |
| "required": [], |
| "properties": [ |
| "depth", |
| "file_path", |
| "files" |
| ] |
| }, |
| { |
| "name": "read_file", |
| "description": "Read a file as numbered lines. Use offset/limit to paginate forward, or tail_lines=N for the file end. Truncated output shows the next offset. Also lists directories. A [checksum=...] trailer is appended for files; pass that checksum to a later edit_file call to guard against the file changing between read and edit.", |
| "required": [ |
| "file_path" |
| ], |
| "properties": [ |
| "file_path", |
| "limit", |
| "offset", |
| "tail_lines" |
| ] |
| }, |
| { |
| "name": "read_multiple_files", |
| "description": "Prefer this over multiple read_file calls when you know which files you need. Reads a batch, each with optional offset/limit/tail_lines. Per-file errors are inline; the batch never fails as a whole.", |
| "required": [ |
| "files" |
| ], |
| "properties": [ |
| "files" |
| ] |
| }, |
| { |
| "name": "run_command", |
| "description": "Run a command and return its output. Only whitelisted commands are allowed.", |
| "required": [ |
| "command" |
| ], |
| "properties": [ |
| "background", |
| "command", |
| "timeout" |
| ] |
| }, |
| { |
| "name": "run_metaskill", |
| "description": "Run a dynamic skill workflow by name.", |
| "required": [ |
| "name", |
| "input" |
| ], |
| "properties": [ |
| "input", |
| "max_ask_calls", |
| "max_command_calls", |
| "name" |
| ] |
| }, |
| { |
| "name": "run_shell_command", |
| "description": "Run a shell command string and return its output. Supports pipes, redirects, &&, and other shell syntax.", |
| "required": [ |
| "command" |
| ], |
| "properties": [ |
| "background", |
| "command", |
| "timeout" |
| ] |
| }, |
| { |
| "name": "snapshot", |
| "description": "Collapse prior exploration turns into a compact summary to free context. save sets a checkpoint; restore replaces the turns since with your summary.", |
| "required": [ |
| "action" |
| ], |
| "properties": [ |
| "action", |
| "force", |
| "label", |
| "summary" |
| ] |
| }, |
| { |
| "name": "spawn_subagent", |
| "description": "Runtime conditional Swival subagent tool.", |
| "required": [ |
| "task" |
| ], |
| "properties": [ |
| "task", |
| "max_turns", |
| "system_hint" |
| ] |
| }, |
| { |
| "name": "think", |
| "description": "Private scratchpad for planning, debugging, or weighing alternatives. Use before complex actions.", |
| "required": [ |
| "thought" |
| ], |
| "properties": [ |
| "branch_from_thought", |
| "branch_id", |
| "mode", |
| "next_thought_needed", |
| "revises_thought", |
| "thought", |
| "thought_number", |
| "total_thoughts" |
| ] |
| }, |
| { |
| "name": "todo", |
| "description": "Persistent checklist for multi-step work. Add items as discovered, mark done as completed. Survives context compaction.", |
| "required": [ |
| "action" |
| ], |
| "properties": [ |
| "action", |
| "tasks" |
| ] |
| }, |
| { |
| "name": "use_skill", |
| "description": "Activate a skill to get detailed instructions for a specific task.", |
| "required": [ |
| "name" |
| ], |
| "properties": [ |
| "name" |
| ] |
| }, |
| { |
| "name": "view_image", |
| "description": "View an image file (PNG, JPEG, GIF, WebP, BMP).", |
| "required": [ |
| "image_path" |
| ], |
| "properties": [ |
| "image_path", |
| "question" |
| ] |
| }, |
| { |
| "name": "write_file", |
| "description": "Create or overwrite a file with content, or atomically rename move_from to file_path (not both). Parent directories are created.", |
| "required": [ |
| "file_path" |
| ], |
| "properties": [ |
| "content", |
| "file_path", |
| "move_from" |
| ] |
| } |
| ] |
| } |
|
|