Convert HTML, CSV, JSON, text, RTF or Evernote to Markdown
tp_convert_to_markdownConverts HTML, CSV, TSV, JSON, plain text, rich text (.rtf) or an Evernote export (.enex) to Markdown and returns it. Use it when the user provides one of these formats as text and wants Markdown. from names the source format. Nothing is saved to the account, and the output is limited to 40,000 characters; to save the result, call tp_save_document with the same source and from. Binary files (.docx, .xlsx, .pptx, .epub, .odt, export .zip) cannot be passed as tool arguments; they are converted in the TransformPipe app or with POST /api/v1/documents.
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": {
"source": "<source>",
"from": "<from>"
},
"name": "tp_convert_to_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | The source format. | |
| name | No | A name for the result. JSON uses it as the document heading; the other formats ignore it. | |
| source | Yes | The file content, as text. |