send_keys
-
Sends input to the target’s configured effective synchronized cohort without waiting for output. Every configured member must be live, nonmodal, and neither caller nor attended. Reports configured pane ids observed before dispatch, not delivery receipts. wait_for_text discounts recognized input; wait for the prompt before typing into a cold shell. Send input to a pane’s program; a shell that receives it runs it with your user’s permissions.
- MCP request method
tools/callSendsend_keysas the tool name, with the arguments below.
Arguments#
-
Press Enter afterward, as a real keypress. Unlike a key named “Enter” sent under literal:true, which types the four letters, this always submits. Defaults to false.
-
keys? (Array<string> | string) #The key names or literal strings to send. One value may be sent on its own, without a list.
-
Send strings literally instead of as key names. Defaults to false.
-
The pane to act on, such as %1. Every listing tool returns these.
No other arguments are accepted.
Result#
Returns object
No other properties are accepted.
Annotations#
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Send keys"
Protocol data#
Use the complete advertised contract for validation and client integration.
Input schema
{"additionalProperties": false,"properties": {"enter": {"default": false,"description": "Press Enter afterward, as a real keypress. Unlike a key named \"Enter\" sent under literal:true, which types the four letters, this always submits. Defaults to false.","type": "boolean"},"keys": {"description": "The key names or literal strings to send. One value may be sent on its own, without a list.","items": {"type": "string"},"type": ["array","string"]},"literal": {"default": false,"description": "Send strings literally instead of as key names. Defaults to false.","type": "boolean"},"pane_id": {"description": "The pane to act on, such as %1. Every listing tool returns these.","type": "string"}},"required": ["pane_id"],"type": "object"}Output schema
{"additionalProperties": false,"properties": {"keys": {"type": "integer"},"literal": {"type": "boolean"},"note": {"type": "string"},"pane_id": {"type": "string"},"resolved_pane_ids": {"items": {"type": "string"},"type": "array"}},"required": ["pane_id","keys","literal","resolved_pane_ids"],"type": "object"}