Write an AI Coach memo
write_ai_coach_noteCreate, replace, or append Markdown memos in AI Coach and see them in the memo list instantly. Organize notes with groups, and use expectedModifiedAt to avoid overwriting recent changes.
Instructions
Create, replace or append to a memo in AI Coach — a plain Markdown file on the user's machine, visible in the memo list right away. mode: 'create' (default) / 'replace' / 'append' (also for bodies over the per-call limit). Pass 'group' to file it under a folder, created if missing. When changing an existing memo, read it first and pass its modifiedAt as expectedModifiedAt so the user's own edits are not overwritten. AI Coach asks the user to confirm, so the call can take a few seconds; note_confirmation_denied means they declined.
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": {
"content": "<content>"
},
"name": "write_ai_coach_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | create (a new memo, the default) / replace (overwrite the whole body) / append (add to the end; also for bodies over the per-call limit). | |
| group | No | Group to create the memo in. It is created if it does not exist. Ungrouped when omitted. | |
| title | No | File name to use for create. Derived from the first line of the body when omitted. | |
| locale | No | Display language (BCP 47). | |
| noteId | No | Target of replace / append. It cannot be given for create. | |
| content | Yes | Markdown body (up to 32768 bytes per call). | |
| idempotencyKey | No | Dedupe key for resends; generated when omitted. | |
| expectedModifiedAt | No | modifiedAt from read; the write stops with note_conflict if the memo changed since. |