Read a Flarum docs page
flarum_docs_getRetrieve the full Markdown source of any Flarum 2.0 documentation page using its slug, path, or URL. Includes code blocks and headings for accurate reference.
Instructions
Fetch the full Markdown of one Flarum 2.0 documentation page. Accepts a page slug ("rest-api", "extend/api"), a site path ("/2.x/rest-api"), or a full docs URL (any #anchor is ignored). Reads the page's Markdown source, so code blocks and headings are preserved. Pair with flarum_docs_search to find the right page first.
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": {
"page": "<page>"
},
"name": "flarum_docs_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Page to read, e.g. "rest-api", "extend/permissions", or a docs URL. | |
| maxChars | No | Truncate the page to this many characters. 0 (default) returns the whole page. |