get_doc
Retrieve a full documentation page by its slug, with an option to extract only code blocks.
Instructions
Retrieve a full documentation page by its slug.
Args: slug: Document slug (e.g., "library/layout/box", "components/rendering_iterables") extract_code: If True, return only fenced code blocks from the page
Returns: Full document with title, URL, and all sections with markdown content
Example: get_doc("library/layout/box") get_doc("state/overview", extract_code=True)
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": {
"slug": "<slug>"
},
"name": "get_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| extract_code | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |