Prepare a document for signing
prepare_documentUse this when the user wants to sign a document, or have someone else sign it, and you can pass the file: an attached file, an upload_id from create_upload, an HTTPS link to the file, or a small file as base64. Accepts PDF, Word (.docx) or image (PNG/JPG) files up to 25 MB (base64 up to 3 MB). Stores the file on YouNeedToSign and opens a signing view where supported. Anyone with the document's link can open it until it is deleted automatically 72 hours after upload; saving does not extend this. Word files keep their text only. Keep document_id and manage_token for later steps. If you can't pass the file, call get_upload_page_link instead. Do not use for legal advice or to sign on behalf of someone else.
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": "prepare_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| file_url | No | ||
| file_name | No | ||
| mime_type | No | ||
| upload_id | No | ||
| file_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sign_url | Yes | ||
| file_name | Yes | ||
| expires_at | Yes | ||
| page_count | Yes | ||
| document_id | Yes | ||
| manage_token | Yes |