trigger_and_capture
Trigger a macro, wait briefly, then return the resulting clipboard text or image for screenshot, OCR, or copy-based workflows.
Instructions
Trigger a macro and automatically capture the clipboard result. This is a convenience tool that combines trigger_macro + get_clipboard_result.
Use this when you want to:
Take a screenshot and see it immediately
Run a macro that copies something to clipboard and retrieve it
Perform OCR and get the extracted text
The macro runs first, then after a short delay the clipboard is captured and returned.
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": {
"macro": "<macro>"
},
"name": "trigger_and_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delay | No | Milliseconds to wait after triggering before capturing clipboard (default: 500) | |
| macro | Yes | The macro name or UUID to trigger | |
| value | No | Optional value to pass to the macro (available as %TriggerValue% in the macro) | |
| machine | No | Name of the machine (defaults to first configured machine) |