validate-playbook
Run syntax validation on Ansible playbooks to identify errors before execution. Prevents runtime failures.
Instructions
Validate an Ansible playbook syntax
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": {
"playbook": "<playbook>"
},
"name": "validate-playbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| playbook | Yes | Path to playbook file | |
| syntaxCheck | No | Run ansible-playbook --syntax-check |