aap_export_workflow
Export Ansible Automation Platform workflow templates as YAML for Configuration-as-Code. Specify workflow ID and format to get compatible controller_workflows definitions.
Instructions
Export a workflow template as Configuration-as-Code YAML.
Args: params (ExportWorkflowInput): - workflow_id (int): Workflow template ID - format (str): 'yaml' or 'json'
Returns: str: YAML compatible with infra.aap_configuration.controller_workflows.
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": {
"params": "<params>"
},
"name": "aap_export_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |