Import a PDF into the editor
import_pdfReturns a link (valid 24 hours) that opens an existing PDF in the ReflowPDF editor's import, which rebuilds it as an editable document. A PDF these tools printed, or one exported from the ReflowPDF editor with «Keep the PDF editable», opens from its own source at once; any other is rebuilt by AI, which needs a free account and uses its AI pages (the editor shows the cost first). A document you made with these tools needs no import: give the person its edit link. Give the PDF the person attached in the chat (pdf, as your client passes attached files), a public https URL of it, or its bytes in base64 (small files). A PDF you cannot pass on: the person opens the editor (https://app.reflowpdf.com) and imports it there.
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": "import_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | A PDF the person attached in the chat, as your client passes attached files to tools. | ||
| url | No | A public https address of the PDF. | |
| name | No | The document's name. Default: the file's. | |
| pdf_base64 | No | The PDF's bytes, base64 (up to 20 MB). |
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 |