post_message
Post a plain-text message or internal note to an Odoo record. Choose comment to notify followers or note for an internal log; returns message_id or error.
Instructions
Post a plain-text message or internal note on a record (requires mail.thread). HTML in body is shown as text, as when typed in the chatter. message_type: "comment" (sent to followers) or "note" (internal log note, not emailed). Returns {message_id} or {error}.
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>",
"record_id": "<record_id>",
"body": "<body>"
},
"name": "post_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| model | Yes | ||
| record_id | Yes | ||
| message_type | No | comment |