1.9 KiB
description, argument-hint
| description | argument-hint |
|---|---|
| Place a signature or initials image on a PDF | [path-or-url] [signature-image-path] |
If you need to check which tools are connected, see CONNECTORS.md.
Sign PDF
Add a visual signature or initials to a document using an image annotation.
Disclaimer: This places your signature image on the page. It is not a certified or cryptographic digital signature. For legally binding e-signatures, use a dedicated signing service.
Workflow
-
Get the signature image — ask the user for a local file path (PNG/JPG) to their signature or initials. If they don't have one, suggest they create one and save it to a known path.
-
Open the PDF —
display_pdf(or reuse existingviewUUID). Check the returnedformFieldsfor signature-type fields — they include page and bounding-box coordinates. -
Locate the target — if there's a signature field, use its coordinates. Otherwise ask: "Which page, and where on the page? (e.g., bottom-right of page 3)"
-
Place it —
interact→add_annotations:{"action": "add_annotations", "annotations": [ {"id": "sig1", "type": "image", "page": 3, "imageUrl": "/path/to/signature.png", "x": 400, "y": 700, "width": 150} ]}Width/height auto-detected from the image if omitted.
-
Verify — follow with
get_screenshotof that page. Show the user. Adjust position if needed viaupdate_annotations. -
Initials on every page — batch one
imageannotation per page in a singleadd_annotationscall.
Tips
imageUrlaccepts local file paths or HTTPS URLs (no data: URIs)- Users can also drag & drop the signature image directly onto the viewer
- Coordinate origin is top-left; a typical bottom-right signature on
US Letter is around
x: 400, y: 700 - Pair with
/pdf-viewer:fill-formfor complete form workflows