run_command
Execute ad-hoc shell commands inside a repository root; read-only operations run by default, while file-modifying commands require explicit write authorization.
Instructions
Run an ad-hoc shell command in a repository. Prefer run_task for known tasks or git_log/git_diff/read_file for read-only operations.
When no NPU is reachable, build/test commands (cmake, make, ninja, pip install, pytest, …) are refused — those must run inside the sim Docker images, never on the local repo. Read-only commands are unaffected.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>",
"command": "<command>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name from list_repositories(). The command runs with cwd set to that repo's root. | |
| command | Yes | Shell command to execute via bash. Destructive patterns (git reset --hard, rm -rf /) are blocked. | |
| allow_writes | No | Explicitly authorize commands that can modify files, build outputs, containers, or remote state. Keep False for read-only inspection. | |
| timeout_seconds | No | Execution timeout in seconds (1–7200) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||