run_shell_command
-
Run a shell command in a pane with your user’s permissions. Run one command in a singular trusted POSIX shell and return bounded output.
- MCP request method
tools/callSendrun_shell_commandas the tool name, with the arguments below.
Arguments#
-
Caller-controlled command.
-
Caller-controlled force.
-
Caller-controlled maxLines.
- minimum
1- maximum
2000
-
Caller-controlled paneId.
-
Caller-controlled timeoutMs.
- minimum
100- maximum
600000
No other arguments are accepted.
Result#
Returns object
-
exitStatus(integer | null) #
No other properties are accepted.
Annotations#
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Run shell command"
Protocol data#
Use the complete advertised contract for validation and client integration.
Input schema
{"additionalProperties": false,"properties": {"command": {"description": "Caller-controlled command.","type": "string"},"force": {"description": "Caller-controlled force.","type": "boolean"},"maxLines": {"description": "Caller-controlled maxLines.","maximum": 2000,"minimum": 1,"type": "integer"},"paneId": {"description": "Caller-controlled paneId.","type": "string"},"timeoutMs": {"description": "Caller-controlled timeoutMs.","maximum": 600000,"minimum": 100,"type": "integer"}},"required": ["command","paneId"],"type": "object"}Output schema
{"additionalProperties": false,"properties": {"droppedLines": {"type": "integer"},"effectiveTimeout": {"type": "number"},"exitStatus": {"type": ["integer","null"]},"linesMissed": {"type": "boolean"},"output": {"items": {"type": "string"},"type": "array"},"pane": {"type": "string"},"paneRef": {"type": "string"},"seconds": {"type": "number"},"timedOut": {"type": "boolean"}},"required": ["droppedLines","effectiveTimeout","exitStatus","linesMissed","output","pane","paneRef","seconds","timedOut"],"type": "object"}