create-playbook
Create an Ansible playbook from a YAML string or object, optionally saving to a specified file path or generating a temporary file.
Instructions
Create an Ansible playbook from YAML string or object.
Args: playbook: YAML string or Python object representing the playbook. output_path: Optional path to write the playbook file. If not provided, a temp file is created. Returns: A dict with keys: path, bytes_written, preview
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": "create-playbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| playbook | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||