run_action
Executes a named Drafts action on provided text, letting AI assistants automate Drafts workflows by applying actions to specific content.
Instructions
Run a Drafts action on specified text
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": {
"action": "<action>",
"text": "<text>"
},
"name": "run_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to run the action on | |
| action | Yes | The name of the action to run |