convert_resource_to_task
Convert Chef infrastructure resources into Ansible automation tasks for migration workflows. Specify resource type, name, action, and properties to generate equivalent YAML task definitions.
Instructions
Convert a Chef resource to an Ansible task.
Args: resource_type: The Chef resource type (e.g., 'package', 'service'). resource_name: The name of the resource. action: The Chef action (e.g., 'install', 'start', 'create'). Defaults to 'create'. properties: Additional resource properties as a string representation.
Returns: YAML representation of the equivalent Ansible task.
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": {
"resource_type": "<resource_type>",
"resource_name": "<resource_name>"
},
"name": "convert_resource_to_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource_type | Yes | ||
| resource_name | Yes | ||
| action | No | create | |
| properties | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |