press_key
Send a Playwright keyboard key to a selected element or the active page to automate typing, shortcuts, or navigation in Typora.
Instructions
Press a Playwright key on a selected element or the active page.
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": "press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| ref | No | ||
| index | No | ||
| selector | No | ||
| targetId | No | Renderer targetId from typora_status; required when no single window is focused | |
| snapshotId | No |