kitty_run
Execute a command on the kitty terminal and return its stdout, stderr, and exit code. Waits for process completion.
Instructions
Run a program on the computer where kitty is running and get its output (stdout, stderr, exit code). This waits for the process to complete. For fire-and-forget, use kitty_launch with type "background" instead.
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": {
"cmdline": "<cmdline>"
},
"name": "kitty_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables as "NAME=VALUE" strings. | |
| cmdline | Yes | The command and arguments to run. Example: ["ls", "-la", "/tmp"]. Required. | |
| timeout | No | Timeout in milliseconds. Default: 120000 (2 minutes). |