Run Command (Kilo-Kit Hard-Gated)
kilo_run_commandExecute terminal commands securely with timeout and guardrails, requiring a valid session. Use this instead of native Bash for safe command execution.
Instructions
MANDATORY: Execute a terminal command with security guardrails and timeout. Use this INSTEAD OF native Bash/terminal tools. PROTOCOL HARD-GATE: Requires valid sessionId in 'ready' state.
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>",
"sessionId": "<sessionId>"
},
"name": "kilo_run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory relative to repoRoot | |
| format | No | markdown | |
| command | Yes | Terminal command to run | |
| sessionId | Yes | Active Kilo-Kit session ID (must be in ready state) | |
| timeoutMs | No | Timeout in milliseconds | |
| decision_narration | No | MANDATORY INTER-TOOL NARRATION: State what you just concluded, verified, or analyzed before calling this tool. Appears in terminal tool badge for full user observability. | |
| next_action_narration | No | MANDATORY: State what this tool will execute and what immediate action follows. |