Start a job
execRuns a program or shell script in a chosen working directory, optionally feeding stdin and enforcing time, CPU, and memory limits. Returns the last 4096 characters of output.
Instructions
mode is required. argv uses program and args. shell uses script and interpreter. The default wait is 10 seconds and does not kill the job. The response is the last 4096 characters.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | cwd | |
| env | No | env | |
| args | No | args | |
| mode | No | mode | |
| name | No | name | |
| tags | No | String keys and values. At most 16 pairs. Keys up to 32 characters, values up to 128. | |
| stdin | No | stdin | |
| script | No | script | |
| ttl_ms | No | ttl_ms | |
| program | No | program | |
| timeout | No | timeout | |
| env_mode | No | env_mode | |
| grace_ms | No | grace_ms | |
| close_stdin | No | close_stdin | |
| interpreter | No | interpreter | |
| cpu_limit_ms | No | cpu_limit_ms | |
| mem_limit_mb | No | mem_limit_mb |