Import a PDF from a public link
foliade_import_urlFetches a PDF that is already online and prepares it as a private draft.
Use this when the user gives a link, or when your host hands you an
attachment as a download URL rather than a local file. For a file on the
user's machine, use foliade_prepare_upload instead.
Only public https links are accepted, and the server checks that the link
really returns a PDF. Call foliade_finalize_upload next with the upload_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": {
"url": "<url>"
},
"name": "foliade_import_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| title | No | ||
| language | No | fr | |
| guest_mode | No | ||
| notice_version | No |