extract_code_examples
Extract all code examples from a documentation page to find implementation snippets and code samples with detected languages.
Instructions
Extracts all code examples/blocks from a documentation page.
This tool specifically targets code blocks in documentation, useful for
finding implementation examples, snippets, and code samples.
Args:
url: The URL of the documentation page
Returns:
All code blocks found on the page with their detected languages
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": {
"url": "<url>"
},
"name": "extract_code_examples"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |