add_attachment_to_pdf
Attach one or more local files to a PDF by specifying the source PDF path and a list of attachment file paths to embed.
Instructions
Embed one or more files as attachments into a PDF using the PDF4me AddAttachmentToPdf API. Provide the path to the source PDF and a list of local file paths to attach (docName is each file's basename). Optional: request_doc_name for the API docName field (defaults to the PDF's filename) and output path.
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": {
"pdf_file_path": "<pdf_file_path>",
"attachment_file_paths": "<attachment_file_paths>"
},
"name": "add_attachment_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_dir | No | ||
| pdf_file_path | Yes | ||
| output_file_name | No | ||
| request_doc_name | No | ||
| attachment_file_paths | Yes |