Add, change or remove a BOM line
dolibarr_bom_lineAdd, update, or delete component lines in a draft bill of materials by BOM ID, using product details and quantity for additions or line IDs for edits and removals.
Instructions
Edits the component lines of a draft BOM. add: product_id and qty. update: line_id and the fields to change. delete: line_id.
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": {
"bom_id": "<bom_id>",
"action": "<action>"
},
"name": "dolibarr_bom_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | ||
| action | Yes | ||
| bom_id | Yes | ||
| line_id | No | ||
| efficiency | No | ||
| product_id | No | ||
| qty_frozen | No |