Execute and wait for output (script or template)
action1_execute_and_waitRuns a script or template on an endpoint, polls until the action finishes, and returns filtered results in a single call.
Instructions
One-shot helper: starts an action (auto-routes by OS for 'script', or runs a template), polls until terminal, returns filtered output.
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": {
"endpoint_id": "<endpoint_id>"
},
"name": "action1_execute_and_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'script' auto-routes by OS; 'template' runs a template_id. | script |
| name | No | Friendly action name. | |
| org_id | No | Org UUID. | |
| params | No | Template params when mode='template'. | |
| confirm | No | Required to execute. Exact string "YES". | |
| dry_run | No | Default true (preview). Set false to execute. | |
| endpoint_id | Yes | Endpoint UUID. | |
| script_text | No | Required when mode='script'. | |
| template_id | No | Required when mode='template'. | |
| response_format | No | Output format. Default markdown. | |
| timeout_seconds | No | Polling timeout. | |
| success_exit_codes | No | PowerShell only. Default '0'. | |
| poll_interval_seconds | No | Poll interval seconds. | |
| skip_connectivity_check | No | Skip offline-abort check. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||