Open in the ReflowPDF editor
open_in_editorReturns the edit link of a document in the ReflowPDF editor, where the person edits it on the page and downloads it: your HTML, or a template with its data (kept as template and data, both editable). Use when the person wants to change the document themselves; you can read their changes and change it too (get_document, update_document).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "open_in_editor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The values of the template, if it is one. | |
| html | No | The HTML document (or your own template source, with data). | |
| name | No | The document's name in the editor. | |
| template_id | No | A gallery template's id, instead of html. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The link; it works until expiresAt. | |
| notes | Yes | What to tell the person about this link. | |
| revision | No | ||
| expiresAt | Yes | When the link stops working (ISO 8601). | |
| documentId | No |