Attach a file
attach_filePut a file on the document: the signed PDF back from the client, a brief, a photo. base64 for a file, or text for a text file, never both.
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": {
"document": "<document>",
"name": "<name>"
},
"name": "attach_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The file name with its extension. | |
| text | No | ||
| base64 | No | ||
| document | Yes | The document's id (from list_documents), or its number once sent, like INV-0007. | |
| contentType | No |