create_inventory
Create a new inventory item for a Semaphore project, specifying name, type (static, YAML, or file), and content or file path.
Instructions
Create a new inventory item.
Args: project_id: ID of the project name: Inventory name inventory_data: Inventory content (for "static") or file path on the Semaphore server (for "file") inventory_type: Semaphore inventory type, such as "static", "static-yaml", or "file". Defaults to "static".
Returns: Created inventory item details
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_data": "<inventory_data>"
},
"name": "create_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| project_id | Yes | ||
| inventory_data | Yes | ||
| inventory_type | No | static |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||