term_exec
Execute a command in an active Windows terminal session and return its output and exit code.
Instructions
Run one command in the session and return only its output and exit code.
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": {
"session_id": "<session_id>",
"cmd": "<cmd>"
},
"name": "term_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmd | Yes | Command to run in the shell | |
| timeout | No | ||
| max_bytes | No | ||
| session_id | Yes | Session id from term_open |