mdn_doc
Fetch full documentation for a specific MDN page using its path or URL, with optional section filtering and pagination for large pages. Find the correct path with search first.
Instructions
Fetch full documentation for a specific MDN page. Use mdn_search first to find the correct path. Supports pagination for large pages via max_length and start_index.
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": {
"path": "<path>"
},
"name": "mdn_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | MDN doc path, e.g. 'Web/JavaScript/Reference/Global_Objects/Array/map' or a full MDN URL | |
| sections | No | Specific section IDs to return: syntax, description, parameters, return_value, examples, see_also. Omit for all sections. | |
| max_length | No | Max characters to return (default 5000). Use with start_index for pagination. | |
| start_index | No | Character offset to start from (default 0). Use for pagination on large docs. |