run_command
Run a shell command as the signed-in user and return its combined stdout/stderr, ending with [exit=N]. A command still running after 50 s keeps running as a process session until timeoutMs (default 120 s) and the reply gives its id for process_output and stop_process; for longer jobs use start_process. For commands that wait for input, use start_process. Reading, listing, searching and editing files also have their own tools with structured results: read_file, list_directory, search_files, search_content, edit_block and write_file; checking the computer, folder sizes and running programs have read-only ones: system_info, disk_usage and list_processes.
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": {
"command": "<command>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| command | Yes | ||
| deviceId | No | Computer name or id from list_devices. Optional with one computer online or a default set. | |
| priority | No | Scheduling priority. Use "low" for heavy or long-running work such as builds, training or test suites. | normal |
| timeoutMs | No | ||
| workSessionId | No | Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work. |