Put Page
put_pageCreate or update a durable memory page by providing a stable slug and markdown content. Returns status and content hashes.
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. |