Create document
create_documentCreate a new mdgen document from markdown. Set an optional title and choose between PDF or slide output to receive the document ID.
Instructions
Create a new mdgen document. Returns the created document id.
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": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Output mode (default: pdf) | |
| title | No | Optional title | |
| markdown | Yes | Markdown body |