inventory_create
Create a new inventory for a project, specifying host list, SSH key, type, and optional become key.
Instructions
Create a new inventory.
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": {
"project_id": "<project_id>",
"name": "<name>",
"inventory": "<inventory>",
"ssh_key_id": "<ssh_key_id>"
},
"name": "inventory_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The ID of the project. | |
| name | Yes | Inventory name. | |
| inventory | Yes | Inventory content (hosts list or path). | |
| ssh_key_id | Yes | ID of the SSH key to use. | |
| type | No | Inventory type (static, static-yaml, file). | static |
| become_key_id | No | ID of the become (sudo) key (optional). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |