append
Record one chat message into OptChat's shared, permanent history. Reuse the same event_id to retry safely without creating duplicates; include origin project, session, and agent details.
Instructions
Record one message of the chat. A retry with the same event_id adds no copy. Set origin.project to the project root, origin.session to the session id and origin.agent to codex or claude. Never record reasoning.
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": {
"event_id": "<event_id>",
"kind": "<kind>",
"text": "<text>"
},
"name": "append"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| kind | Yes | ||
| text | Yes | ||
| origin | No | ||
| event_id | Yes |