Send a key to a pane
cmux_send_keySend named keys or Ctrl chords to terminal panes, including Enter, Tab, Escape, and C-c, and target another workspace or window when needed.
Instructions
Send a named key such as Enter, Tab, Escape, C-c, C-d. Ctrl chords accept either form: "C-u" or "ctrl+u". Pass workspace/window to target a surface in another workspace.
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": {
"key": "<key>"
},
"name": "cmux_send_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | e.g. "Enter", "C-c" / "ctrl+c". | |
| window | No | Window ref like "window:1". Defaults to the caller's window. | |
| surface | No | Surface ref like "surface:40". Defaults to the current pane. | |
| workspace | No | Workspace ref like "workspace:26". Defaults to the caller's workspace. |