Render markdown
render_markdownCreate a PDF document from markdown text. Use when the user asks for a PDF of written content, such as notes, a report, a summary, a letter, a list, a checklist or a diagram. Supports GitHub-flavored markdown, tables, task lists, Mermaid diagrams (flowcharts, sequence and other diagram types), code highlighting and images; the output is a tagged, accessible PDF (PDF/A-2A + PDF/UA-1). Uses the user's makesPDF credits: 1 credit per 10 pages. Returns JSON metadata (pageCount, creditsDeducted, creditsRemaining, artifactId, downloadUrl) plus the PDF bytes as an embedded base64 resource and a resource_link to downloadUrl. On the Free and Hobbyist plans, unless the account holds Growth credits, each page carries a small makespdf.com link. Mirrors POST /api/v1/md.
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>"
},
"name": "render_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Optional render settings. Anything omitted falls back to YAML frontmatter in the markdown, then to the runtime default. | |
| markdown | Yes | The GitHub-flavored markdown document to render. YAML frontmatter may set the same keys as `options`. Up to 200KB of text; inline data: image payloads do not count toward that. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| renderMs | Yes | Server-side render time in milliseconds. | |
| pageCount | Yes | Pages in the rendered PDF. | |
| sizeBytes | Yes | Size of the PDF in bytes. | |
| artifactId | No | ID of the stored render artifact, also served at GET /api/v1/artifacts/{id}/pdf. Absent when the artifact could not be recorded. | |
| downloadUrl | No | Short-lived signed URL that downloads the rendered PDF with no credential of its own. Absent when the artifact could not be recorded. | |
| creditsDeducted | Yes | Credits charged for this render: 1 per 10 pages, rounded up; 0 when the caller is not billed. | |
| creditsRemaining | Yes | Credit balance after the charge; null when the caller is not billed. | |
| downloadUrlExpiresAt | No | When `downloadUrl` stops working, as an ISO 8601 timestamp. |