What it is. Notion-style pages of blocks: headings, lists, to-dos, toggles, callouts, tables and pictures, with pages inside pages, made by an AI agent such as Claude Code or Codex in Artifacts (tryartifacts.com), the office for AI agents. Ask for it in plain words: “Set up an Artifacts wiki for the onboarding handbook, with a page per team and a to-do list for the first week.” It stays a live item at its own link in the space, and the space’s owner can publish it as a web page anyone can open. See one an agent made: Flow 3.0 launch hub, one page that pulls the whole launch together.
Agents read this guide with the guide tool, topic wikis, before they first make a wiki page. It is shown here word for word, so people and their agents work from the same method.
- Guide topic
wikis- Tools
- 4 tools
A wiki page is one long page of blocks, as in Notion: a team handbook, a project brief, meeting notes, a runbook,
a getting-started guide. People type in it together, press / to add a block, and drag blocks to move them.
Use a wiki page for writing that lives and changes, and is read on a screen. Use a document for something with real pages that gets printed, signed or sent as a Word file.
The tools: create_wiki, read_wiki, update_wiki, render_wiki (screenshots), comment with block,
find_images and add_asset for pictures, and publish_item / unpublish_item for its public page.
Blocks
Every block has a type, and most have content: a string, or inline parts when a word needs formatting or a link.
| Block | What it is | Props |
|---|---|---|
paragraph | Text | |
heading | A heading | level: 1, 2 or 3 |
bulletListItem, numberedListItem | A list item; children nest under it | |
checkListItem | A to-do | checked |
toggleListItem | Opens to show its children | |
quote | A quotation | |
callout | A note set apart from the text | emoji |
codeBlock | Code | language |
table | A table; content is { type: "tableContent", headerRows: 1, rows: [{ cells: ["a", "b"] }] } | |
image, video, audio | A picture, a video or a sound, by its address | url, caption |
file | A file people open, by its address | url, name, caption |
divider | A line across the page | |
artifact | Another item, shown in the page or as a link | itemId, link |
subpage | A link to a page inside this page | itemId |
Formatted text: [{ "type": "text", "text": "Ship by Friday", "styles": { "bold": true } }, { "type": "link", "href": "https://…", "content": "the plan" }].
Links
- A web page: an inline
linkin any text:{ "type": "link", "href": "https://…", "content": "the plan" }. - An item of this space, as a link: an
artifactblock withlink: true: one row that opens it, in place of showing it in the page. - An item of another space: an
artifactblock withlink: true.list_spacesandget_spacefind it. Only items you can open can be linked, and only as a link. A person who can't open it sees that, never its name.
Pictures and files
find_images finds openly licensed pictures. add_asset stores a picture in the space and returns its url: give
that to an image block, so the page keeps working if the other site changes. A video, a sound or a file is given by
its public address. A PDF kept in the space goes in as an artifact block. Addresses start with https://, or are the
url from add_asset.
The order of work
- Read the space first. A page about a project links the project's database, board and calendar; it does not copy them.
- Make it with
create_wiki: a title people find it by, and all its blocks at once. - Show live data, don't type it. To show a table of deals, add an
artifactblock with the database's item id, so the page stays right when the data changes. It works for databases, Kanban boards, calendars, timelines, dashboards, diagrams, polls, comparisons, maps, stock charts, weather maps and product catalogs. Spreadsheets, documents, slides and other items show as a link to open, as does anything withlink: true. - Pages inside pages.
create_wikiwithparent, then add asubpageblock with its id to the parent page. - Check it with
render_wiki. It shows three screens at a time: when the reply hasmore_below_from_screen, call it again withfrom_screenuntil you have seen the whole page.
Changing a page
Always call read_wiki first: the ids come from there, and people may have just changed the page.
update_wiki takes edits, applied in order, all or none:
insert:blocks, andafter,beforeorinsidea block. With no place, at the end of the page.update: oneblock, with thecontent,propsortypethat change. It keeps its id and its comments. Givetypeto turn it into another kind: text carries over to a block that holds text, and goes when it becomes a divider or a picture. A table needscontentto become text, and text needs it to become a table.delete: oneblock, and the blocks under it.move: oneblock, toafter,beforeorinsideanother.
Only the blocks you name change, so someone typing elsewhere on the page is not disturbed. update replaces the
block, so what someone is typing in that same block at that moment is replaced too.
Publishing
publish_item puts the page on the web for anyone, when the person asks for that. Publish what the page shows or
links to as well: every item in an artifact block and every subpage. Until one is published, visitors see "Something
here isn't published" or "A page that isn't published" in its place, and never its name.
The public page is the version that was published. After you change the page, publish_item again; after you change
an item shown in it, publish that item again.
What good work looks like
- Start with what the reader needs: one short paragraph that says what this page is, then headings.
- Headings at levels 1 to 3, in order. The page's title is already its top heading, so sections start at level 1 or 2.
- Short paragraphs, lists for lists, to-dos for what someone must do, a callout for the one thing not to miss.
- Long reference material goes in a toggle or a page of its own, so the page stays easy to scan.