convert_markdown
Convert Markdown strings to styled PDF files with selectable light or high-contrast themes and a specified output path.
Instructions
Convert a Markdown string to a styled PDF file.
Args:
markdown: The Markdown content to convert.
output_path: Where to write the PDF. ".pdf" is appended if missing. Relative paths
resolve against the server's working directory, so pass an absolute path.
theme: "light" (default) or "high-contrast". Changes code-block, quote, and table colors.
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": {
"markdown": "<markdown>",
"output_path": "<output_path>"
},
"name": "convert_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | light | |
| markdown | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |