Press a key
keySimulate typing characters, arrow inputs, or modifier shortcuts on the FigCraft canvas to automate UI interactions and trigger app commands programmatically.
Instructions
A shortcut or key as if typed on the canvas: "A", "0", "Enter", "ArrowLeft", "=", or egui names like "Plus". cmd is Cmd on macOS.
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": "key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | ||
| cmd | No | ||
| key | Yes | ||
| ctrl | No | ||
| shift | No |