Send Keys to Agent
agent_send_keysSend validated logical key presses—such as Esc, Ctrl+C, Enter, or Y then Enter—to an agent's interactive UI by target name or pane ID.
Instructions
Send validated logical key presses to an agent's interactive UI, such as ['esc'], ['ctrl+c'], ['enter'], ['up'], or ['y', 'enter'].
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": {
"target": "<target>",
"keys": "<keys>"
},
"name": "agent_send_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Ordered list of logical key names (for example ['esc'] or ['ctrl+c']). | |
| target | Yes | Unique live agent name or hosting pane ID. |