read and write tools, moved schemas to tool/__init__

This commit is contained in:
2026-02-21 14:51:39 -07:00
parent 3085f82179
commit 0cd089894b
5 changed files with 165 additions and 19 deletions
+16
View File
@@ -25,3 +25,19 @@ async def bash(command: str, sandbox=None) -> str:
except Exception as e:
return f"Error: Unexpected failure: {e}"
BASH_SCHEMA = {
"name": "bash",
"description": "Execute a bash command in the isolated sandbox environment. Use this to run shell commands, install packages, run scripts, etc.",
"input_schema": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The bash command to execute (e.g., 'ls -la', 'python script.py', 'pip install requests')",
}
},
"required": ["command"],
},
}