trigger_action
Invoke PySide6 QActions directly using their object name or visible text, avoiding menu clicks and modal dialogs for reliable toolbar and menu action activation.
Instructions
Trigger a QAction directly by objectName (name) or visible label (text),
without clicking through menus. Useful to avoid opening modal menus and to
reach toolbar/menu actions reliably. Provide at least one of name/text.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "trigger_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | App pid from launch_app. Omit to target the last launched app. Required only when several apps are running and you need a specific one. | |
| name | No | ||
| text | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |