Extract Code Examples
extract_code_examplesExtract code blocks from a documentation file to get language and line numbers, making it easy to locate and reuse code examples.
Instructions
Extracts all code blocks from a documentation file with their language and line numbers
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": {
"filename": "<filename>"
},
"name": "extract_code_examples"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name of the documentation file (without .md extension, e.g., "resources", "tools") |