aap_get_job_output
Fetch stdout/stderr output from an Ansible Automation Platform job to troubleshoot failures and review execution results.
Instructions
Fetch stdout/stderr output from an AAP job run.
Useful for troubleshooting failures or reviewing what a job did.
Args: params (GetJobOutputInput): - job_id (int): Job ID - format (str): 'txt' or 'json' - max_lines (int): Max output lines (default 200)
Returns: str: Job output text or JSON with status and truncated 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": {
"params": "<params>"
},
"name": "aap_get_job_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |