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 25 s keeps running as a process session until timeoutMs (default 120 s) and the reply gives its id for process_output and stop_process; with a timeoutMs of 25 s or less, a command still running then is not killed but keeps running the same way for up to 10 minutes. On Windows (platform win32) the shell is Windows PowerShell 5.1, not bash or cmd: write PowerShell, e.g. Get-ChildItem -Force; Select-String -Path *.log -Pattern error; a; if ($?) { b } in place of a && b. 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 | |
| priority | No | Scheduling priority. Use "low" for heavy or long-running work such as builds, training or test suites. | normal |
| timeoutMs | No | ||
| workSessionId | No | From create_work_session |