Get a doc topic
/docs/{topic}Returns one page of the scripting reference as markdown. It is how a coding agent reads the scripting rules before it writes or fixes a script.
Scope | Heavy call | Long poll | CLI |
|---|---|---|---|
| No | No |
|
Guidance
Take
topicfrom List doc topics. A topic with a slash, such as a page inside a group, goes in the path as it is.The answer is markdown, not JSON: read the body as text.
The body starts with the page title as a
#heading. A page with tabs has each tab added under a##heading named after it.When the page has a next page, the last line is
Next:followed by that page's topic. Follow it to read the reference in order.A
503 busymeans the docs could not be loaded. Retry after a few seconds.
Path parameters
Name | Type | Description |
|---|---|---|
| string | A |
Response
200 with Content-Type: text/markdown; charset=utf-8 and the page as the body.
Status codes
Status | Code | Meaning |
|---|---|---|
| - | The page as markdown |
|
| No topic by that name |
|
| The docs could not be loaded. Retry shortly |
