type
Enter text into a selected Typora element via Playwright/CDP to automate editing and testing.
Instructions
Enter text into a selected Typora element through Playwright/CDP.
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": {
"text": "<text>"
},
"name": "type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| text | Yes | ||
| clear | No | ||
| index | No | ||
| selector | No | ||
| targetId | No | Renderer targetId from typora_status; required when no single window is focused | |
| snapshotId | No |