run_command
Execute a configured command by exact path with optional arguments and working directory; returns exit code, stdout, and stderr. Use for short finite tasks, not long-running processes.
Instructions
Run a finite configured command to completion. Pass the exact path from search_commands, the same cwd used for discovery, and optional args as separate unchanged tokens. cwd defaults to the server's directory. Returns its exit code and separate stdout/stderr, capped at 64 KiB each. Commands have a fixed 60-second timeout. Long-running commands are refused with a hint to use start_session; commands marked agents: false are also refused.
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": {
"path": "<path>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project directory to resolve and run the command from. Defaults to the server's cwd. | |
| args | No | Arguments appended as separate, unchanged tokens. | |
| path | Yes | Exact command path returned by `search_commands`, including the leading `fire`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stderr | Yes | ||
| stdout | Yes | ||
| exit_code | No | Process exit code, or null if the command was refused, could not start, or timed out. | |
| timed_out | Yes | ||
| stderr_truncated | Yes | ||
| stdout_truncated | Yes |