Put Page
put_pageIdempotently write a durable memory page using a stable slug and full markdown content, returning a changed flag and content hash.
Instructions
put_page
Create or update a Memkin page idempotently.
When to use: write a durable memory page.
When NOT to use: append a dated event; use add_timeline_entry.
Returns: ok, slug, changed flag, content hash, previous hash, and updated_at.
On error: fix slug or non-empty content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Stable page slug, for example `decisions/use-pglite`. | |
| content | Yes | Full markdown content, optionally with YAML frontmatter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the write succeeded. | |
| slug | Yes | Page slug. | |
| changed | Yes | Whether content changed. | |
| updated_at | Yes | Page update timestamp. | |
| content_hash | Yes | Current content hash. | |
| previous_hash | No | Previous content hash, if any. |