update_inventory
Update an existing inventory item in a SemaphoreUI project by providing project ID and inventory ID, optionally changing the name, content, or type, and returning the updated details.
Instructions
Update an existing inventory item.
Args: project_id: ID of the project inventory_id: ID of the inventory item to update name: Inventory name (optional) inventory_data: Inventory content for "static", or file path for "file" (optional) inventory_type: Semaphore inventory type, such as "static", "static-yaml", or "file". Defaults to "static"; pass the existing type if you don't intend to change it.
Returns: Updated 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>",
"inventory_id": "<inventory_id>"
},
"name": "update_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| project_id | Yes | ||
| inventory_id | Yes | ||
| inventory_data | No | ||
| inventory_type | No | static |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||