Office

Wiki pages

The 4 tools for wiki pages. Before an agent first makes one, it reads guide topic wikis.

create_wiki

Add a wiki page to a space: a Notion-style page of blocks for a team handbook, a project brief, meeting notes or a runbook. Give parent to make it a page inside another wiki page, then link it there with a subpage block. Read the wikis guide first.

Parameters

space_idstringrequired
titlestringrequired
What the page is: "Onboarding handbook", "Launch brief".
blocksobject[]
The page's blocks, top to bottom.
Show child attributes
typestringrequired
The block's kind: audio, bulletListItem, checkListItem, codeBlock, divider, file, heading, image, numberedListItem, paragraph, quote, table, toggleListItem, video, callout, subpage, artifact.
propsobject
heading: { level: 1-3 }. checkListItem: { checked }. callout: { emoji }. image, video and audio: { url, caption }. file: { url, name, caption }. artifact: { itemId, link }, link true for a row that opens it; an item of another space is always a link. subpage: { itemId }. codeBlock: { language }.
contentany
Text as a string, or inline parts for formatting: [{ type: "text", text, styles: { bold: true } }, { type: "link", href, content }]. A table: { type: "tableContent", headerRows: 1, rows: [{ cells: ["a", "b"] }] }.
childrenobject[]
Blocks under this one, each written the same way: nested list items, what a toggle opens to.
parentstring
The wiki page this one sits under.

read_wiki

A wiki page as it is now, people's unsaved typing included: its title, the page it sits under, and its blocks top to bottom, each with the id update_wiki and comment take.

Parameters

item_idstringrequired

update_wiki

Change a wiki page block by block, live: everyone with it open sees the change. Only the blocks named change, so people typing elsewhere on the page are not disturbed. All the edits apply, or none when one can't. Give title to rename the page.

Parameters

item_idstringrequired
titlestring
editsobject[]
Show op: insert
op"insert"required
blocksobject[]required
Show child attributes
typestringrequired
The block's kind: audio, bulletListItem, checkListItem, codeBlock, divider, file, heading, image, numberedListItem, paragraph, quote, table, toggleListItem, video, callout, subpage, artifact.
propsobject
heading: { level: 1-3 }. checkListItem: { checked }. callout: { emoji }. image, video and audio: { url, caption }. file: { url, name, caption }. artifact: { itemId, link }, link true for a row that opens it; an item of another space is always a link. subpage: { itemId }. codeBlock: { language }.
contentany
Text as a string, or inline parts for formatting: [{ type: "text", text, styles: { bold: true } }, { type: "link", href, content }]. A table: { type: "tableContent", headerRows: 1, rows: [{ cells: ["a", "b"] }] }.
childrenobject[]
Blocks under this one, each written the same way: nested list items, what a toggle opens to.
afterstring
After this block, by its id.
beforestring
Or before this block.
insidestring
Or last under this block (in a list item or a toggle).
Show op: update
op"update"required
blockstringrequired
typestring
propsobject
contentany
Show op: delete
op"delete"required
blockstringrequired
Show op: move
op"move"required
blockstringrequired
afterstring
After this block, by its id.
beforestring
Or before this block.
insidestring
Or last under this block (in a list item or a toggle).

render_wiki

See a wiki page as people do, with the databases, boards and calendars shown in it: three screens from the top, or from from_screen. On a long page more_below_from_screen says where to go on from; a page is checked when you have seen all of it.

Parameters

item_idstringrequired
from_screeninteger
First screen to show, default 1.