aap_create_host
Add a host to an Ansible Automation Platform inventory by specifying a hostname and inventory ID, with optional variables, description, and enabled state.
Instructions
Add a host to an AAP inventory.
Example: "Add host web01.example.com to the Production inventory"
Args: params (CreateHostInput): Host configuration.
Returns: str: JSON with created host id and name.
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_create_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |