Delete records
odoo_unlinkDelete one or more Odoo records — IRREVERSIBLE, so it takes two turns. The model must be on the workspace's write whitelist with can_unlink=true. The first call returns a preview (display_name + id of each record) and deletes nothing: show that list to the user and end your turn. confirm=true only deletes once the USER has replied after seeing the preview — you cannot confirm your own delete in the same turn. Hard limit of 50 ids per call.
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": {
"model": "<model>",
"ids": "<ids>"
},
"name": "odoo_unlink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Record IDs to delete (max 50). | |
| model | Yes | Odoo model technical name. | |
| confirm | No | Set to true ONLY after the user replied confirming a preview you already showed them. Setting it in the same turn as the preview returns the preview again. | |
| consent_token | No | The approval a person gave for THIS call in Tuqui. Bound to these arguments and valid once. |