Write Pages
kuickr_pages_writePublish or change a Page; edits keep its URL. A new Page takes its folder's visibility; Unfiled in your personal Space is private. HTML with #game is public and listed. create refuses replacement unless overwrite:true. Text uses utf8; small binaries use base64 (256KB per call). Above that limit, binaries and images on disk use upload_start, then upload_finish after the shell upload. Directories sync with the CLI (kuickr.co/cli).
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": {
"action": "<action>"
},
"name": "kuickr_pages_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | action=intake or showcase: true/false; showcase requires explicit on. Off the Showcase, search follows the Folder. | |
| to | No | action=move: the new page path. | |
| alt | No | action=media, or upload_finish for an image: alt text for the returned markdown (defaults to the file name). | |
| org | No | Org/Space slug (optional with folder; omit org+folder to use your personal Space / Unfiled). | |
| rev | No | action=restore: the revision id to roll back to (from action=history). action=diff: the revision to compare — against the page now, or against to_rev. | |
| from | No | action=move: the page's current path. | |
| hero | No | action=hero (or create): the Page's animated hero — one <svg> (16:9 viewBox, CSS @keyframes, the reduced-motion rule, at most 20000 bytes). dry_run:true returns the first frame. Recipe: page-hero. | |
| kind | No | action=intake: kind enabled or disabled on this Page only. | |
| path | No | Page path, e.g. plans/index.md. Required for create/append/delete/history/restore/showcase. | |
| clear | No | action=hero: remove the Page's hero (it falls back to the one Kuickr generates). | |
| limit | No | action=history: how many revisions to return (default 20, max 100). | |
| title | No | action=meta: the Page's title; "" removes it. | |
| action | Yes | create: create a Page; overwrite is explicit. append: add a text chunk to the end. edit: replace matching text, preview a diff or retag. move: rename or move while preserving history and shares. delete: preview, then trash for 30 days. purge: preview, then permanently remove. history: list saved revisions. restore: restore a saved revision. diff: compare revisions or the current Page. hero: set or preview an animated Page hero. meta: set the Page's title, description or favicon. preview: inspect link-unfurl options. embed: manage a delivery grant; recipe page-embed. fork: copy a public Page whose owner permits forks. persistence: configure stored-state capabilities. intake: enable or disable this Page form. showcase: change Public Page listing (search follows its Folder). wall: manage a shared Wall. poll: configure or close a shared poll. media: store a small image sent as base64 on a Markdown Page. media_link: issue a signed-in person an image upload link. upload_start: reserve a file, video or image and return its signed storage upload. upload_finish: attach stored media and return Markdown for edit. upload_cancel: release an unfinished upload. | |
| folder | No | Folder slug (optional; omit org+folder to use your personal Space / Unfiled). | |
| if_rev | No | action=edit or meta: the rev you read. The edit is refused if the page changed since, so a stale read cannot overwrite newer work. | |
| option | No | action=preview dry_run:true: picture only this option. | |
| sha256 | No | action=upload_start: optional 64-character hexadecimal digest of the file bytes. | |
| to_org | No | action=move/fork: destination Space slug; enables cross-Space moves (optional). | |
| to_rev | No | action=diff: the far end of the comparison (from action=history). Omit to diff rev against the page as it stands now. | |
| topics | No | action=create: optional #topic tags (kebab-cased, max 8) for Showcase discovery. A game (#game) also carries a game type, e.g. racing, runner, platformer, puzzle; an HTML page created with #game is public and listed. action=edit: topics (with or without old_string) replace the page's topics; a retag never changes who can see the page. | |
| confirm | No | delete/purge: true to act; omit to preview. | |
| content | No | Page text (markdown or html). Required for create/append. action=media: the image file's bytes, base64-encoded. | |
| dry_run | No | Writes nothing. action=edit: returns the diff and the comments it would orphan. action=hero: returns its verdict and first frame. action=preview: pictures each link-preview option. | |
| favicon | No | action=meta: square PNG, 512px and 256 KB at most, base64; "" removes it. | |
| options | No | action=poll operation=configure: 2-12 distinct labels. Cannot reword after votes. | |
| checksum | No | action=upload_start: required base64 MD5 of the file bytes. | |
| encoding | No | Defaults to utf8 for Markdown, HTML and text; small binaries use base64. Files (.pdf, .xlsx, .docx and images) open in Kuickr's viewer. CSV text can feed a live table (recipe csv-source-table). utf8 is refused for binaries; base64 is refused for text. Markdown frontmatter title, description and topics render publicly and are returned by read. | |
| filename | No | action=media or upload_start: the file name (e.g. IMG_0001.jpg); names the stored file and the default alt text. | |
| log_uuid | No | action=wall operation=clear: exact log_uuid returned by interaction_status. | |
| question | No | action=poll operation=configure: public poll question. | |
| stateful | No | action=create: new interactive Pages default to interactive_personal; shared apps explicitly choose capabilities:[shared]. Game-tagged Pages default true. Existing Pages require explicit action=persistence. | |
| byte_size | No | action=upload_start: required file size in bytes. | |
| operation | No | action=embed: issue/enable/rotate return embed_path with a secret shown once; embed_status shows the result of an uncertain change; enable or rotate replaces a lost secret. Recipe: page-embed. action=poll: configure/close; action=wall: clear/lock/remove (remove takes message_id; owner only). | |
| overwrite | No | action=create only: replace an existing page. Without it, create refuses rather than clobbering. The replaced text stays in action=history. | |
| poll_name | No | Stable poll identifier (1-64 letters, digits, underscores or hyphens). | |
| public_id | No | action=embed except issue: grant selector from embed_status. | |
| signed_id | No | action=upload_finish: the signed_id returned by upload_start. | |
| to_folder | No | action=move/fork: destination folder slug (optional; fork defaults to your personal Space / Unfiled). A fork copy is private and credits the original. | |
| upload_id | No | action=upload_finish/upload_cancel: the upload_id returned by upload_start, for the same Page. Recipe: page-upload-session. | |
| message_id | No | action=wall operation=remove: the id of one message from interaction_status history. | |
| new_string | No | action=edit: the replacement text (empty string deletes the match). | |
| old_string | No | action=edit: the exact text to replace — must match the page source (as action=read returns it) exactly once unless replace_all. | |
| description | No | action=meta: up to 200 characters; "" removes it. | |
| interaction | No | action=interaction_status: typed shared interaction. | |
| replace_all | No | action=edit: replace every occurrence of old_string (default false = must match exactly once). | |
| capabilities | No | action=persistence or stateful create: declared Page grants. [] disables server retention and closes an existing scope with its recovery policy. Local browser SDK use also needs its local metadata. | |
| content_type | No | action=upload_start: declared media type; the session admits images and supported video and file kinds. | |
| enable_payer | No | action=persistence or stateful create: explicitly authorize the Space ceiling too. Defaults false; may activate other already-declared Pages in that Space. Never overrides a Folder deny or grants private-data access. | |
| design_system | No | action=create: optional explicit authored Page-look id. Omit to inherit Folder → Space → account. | |
| expected_token | No | purge: the preview token. | |
| expected_version | No | action=embed: exact frame_version; action=poll operation=configure: exact version from interaction_status. | |
| persistence_mode | No | action=create with stateful: durable is default; local explicitly keeps local-only state. Parent capability ceilings and the runtime gate still apply; the response reports the resulting persistence metadata. | |
| expected_capabilities | No | action=persistence: exact capabilities from kuickr_pages_read action=persistence_status; stale changes are refused. |