set_field
Set a form field by its technical name, supporting text, numbers, relations, selections, booleans, dates, tags, and HTML. Handles notebook tabs, editable list rows, and onchange updates, returning the read-back value and affected fields.
Instructions
Set a field on the current form (or open dialog), by technical field name. Handles char/text/number, many2one (type + pick the matching suggestion; {"index": 0} picks the first suggestion, {"create": "Name"} quick-creates, {"search_more": "query"} opens the selection dialog), selection (value or label), boolean, date/datetime (ISO "2026-09-18" or "2026-09-18 14:30"), many2many tags (string or list), html. Switches notebook tab automatically when needed. For a cell of an editable list: line=<row index or "editing">, list_field=; the row is then validated (commit=True) and invalid cells are reported. Returns the value read back and the other fields changed by onchange.
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": {
"name": "<name>",
"value": "<value>"
},
"name": "set_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | ||
| name | Yes | ||
| scope | No | auto | |
| value | Yes | ||
| commit | No | ||
| list_field | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |