project_page_create
tools/call
Create a Docs page in a project, at the end of the project root or under parentId, with an optional body in plain text or Markdown (bodyFormat). Markdown holds headings # to ###, paragraphs, bullet, numbered and checkbox (- [ ]) lists, > quotes, fenced code blocks with a language, --- rules, tables, links (https, http or mailto), **bold**, *italic*, ~~strikethrough~~ and `inline code`, plus the :::specify-callout and :::specify-toggle blocks the editor's Markdown export writes. HTML, images and other media, other links (javascript:, vbscript: or data: in any letter case, after a space or written with entities or percent escapes, and in a :::specify-node block's JSON too), #### or deeper headings, reference-style links and footnotes (write each link inline), links or formatting around `inline code` or a mention, table rows with more cells than the header row, and NUL characters or unpaired surrogates, escaped inside a :::specify-node block's JSON included, are refused with what was found, and nothing is written. Needs write access to the project, as the Docs page in the browser does.
Scopes
read:projectswrite:projects
Inputs
- projectstringRequired
- Project name, key (WORK) or ID
- titlestringRequired
- Page title, at most 180 characters
- parentIdstring
- Optional page to put it under, in the same project
- bodystring
- The page text in bodyFormat, at most 100,000 characters, with no NUL or unpaired surrogate. It becomes the document the editor shows, as if a person pasted it
- bodyFormat"text" | "markdown"
- text (default): each line becomes a paragraph, written as is. markdown: read as the editor reads a Markdown paste
- idempotencyKeystringRequired
- Retry key you choose. The same call sent again with the same key within 24 hours writes nothing twice: if an answer is lost or unclear, send the same call with the same key. Use a new key for a new change
Returns
The created page and its document. A call returns content[0].text with the JSON result and structuredContent.result with the same value.
Listed when
The connection has read:projects.