markdown_to_script
Extract language-tagged code from Markdown files, optionally converting prose to comments or including all fenced blocks.
Instructions
Extract code from a markdown file. Only fenced blocks tagged with language are kept
unless extract_all_blocks is true. Prose becomes comments when include_prose is 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": {
"path": "<path>",
"language": "<language>"
},
"name": "markdown_to_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| language | Yes | ||
| output_path | No | ||
| include_prose | No | ||
| extract_all_blocks | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |