Send keys in sandbox
sandbox_typeType exact text or send key chords to the focused window or a window selected by title or PID, focusing it first. Use text mode for verbatim input and keys mode for SendKeys shortcuts.
Instructions
Type text or send key chords to the focused window (or a window found by title/pid, which is focused first). mode is explicit: 'text' types the string exactly as-is; 'keys' is SendKeys syntax ({ENTER}, {TAB}, ^s, %{F4}). Prefer semantic actions (sandbox_smart_click, sandbox_ui_action setvalue) over raw typing.
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": {
"keys": "<keys>",
"mode": "<mode>"
},
"name": "sandbox_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| keys | Yes | ||
| mode | Yes | 'text' = verbatim, 'keys' = SendKeys syntax like {ENTER} or ^s. | |
| literal | No | Deprecated: use mode instead (true = text, false = keys). | |
| windowTitle | No |