nautobot_run_workflow
Run pre-built composite workflows to execute multi-step Nautobot operations and aggregate multiple API calls into one request, simplifying complex automation tasks.
Instructions
Execute a pre-built composite workflow aggregating multiple API calls.
Composite workflows encapsulate multi-step operations that would otherwise require several sequential nautobot_call_nautobot calls. Use nautobot_api_catalog (include_workflows=True) to discover available workflows and their required parameters.
Args: workflow_id: Workflow name (e.g., 'bgp_summary', 'firewall_summary', 'compare_device', 'onboard_config'). See nautobot_api_catalog for the full list. params: Workflow-specific parameters. Required params vary by workflow. Example for bgp_summary: {"device": "core-rtr-01", "detail": false} Example for compare_device: {"device_name": "rtr-01", "live_data": {...}}
Returns: Envelope dict with: - workflow: workflow_id echo - device: device identifier used - status: 'ok' or 'error' - data: workflow-specific output (serialized Pydantic model or dict) - error: error message if status=error, else null - timestamp: ISO 8601 UTC timestamp
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": {
"workflow_id": "<workflow_id>",
"params": "<params>"
},
"name": "nautobot_run_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | ||
| workflow_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||