Convert content between formats
convertConvert content between formats. Modes: html-to-pdf, html-to-png (real browser), csv-to-json, json-to-csv. PDF/PNG return as attachment/image; data modes return text.
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": {
"mode": "<mode>",
"content": "<content>"
},
"name": "convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Conversion to perform. | |
| content | Yes | The input content: HTML, CSV, or JSON depending on mode. | |
| headers | No | For csv-to-json: treat the first row as column headers. | |
| delimiter | No | Field delimiter for CSV modes. | , |
| pdfFormat | No | Paper size for html-to-pdf. | A4 |