Add Attachment
add_attachmentAttach a document by LINK (pass a public url) to a property, client, prospect, location, or pursuit. File it where it belongs: a letter or proposal sent while trying to WIN a client or listing goes on record_type "pursuit"; a document about the LISTING or the CLIENT as a whole — title report, survey, site-criteria packet, signed representation agreement — goes on record_type "property" or "client"; a document about one deal — LOI, PSA, executed lease — goes on "prospect" or "location". Set attachment_type (e.g. "LOI", "Lease", "PSA") and shown_on_report as needed. Files CANNOT be uploaded through the assistant — if the user has a file that is not yet online, first ask whether it already exists at a public link and use that; otherwise do NOT attempt an upload — call this without a url and relay the guidance it returns (attach it in the Propensa app, or host it publicly and share the link). Enforces participation on the target. Cannot delete anything. Documented at https://www.propensa.com/connect#attachments.
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": {
"record_type": "<record_type>",
"record_id": "<record_id>"
},
"name": "add_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A PUBLIC link to the document — the only way to attach through the assistant. Anything already online (a hosted PDF, a Drive/Dropbox link set to "anyone with the link", a listing flyer URL) goes here; the link is stored as-is, nothing is copied or uploaded. If the user has a file that is NOT online, do NOT try to upload it — omit this and relay the guidance the tool returns. | |
| filename | No | Optional label for the link (defaults to the URL). A filename with a real extension, e.g. "lease.pdf", helps later text extraction pick the right reader. | |
| record_id | Yes | The record id: propertyid / prospectid (client) / propertytoprospectid (prospect) / prospectlocationid (location) / pursuit id. Requires broker participation. | |
| description | No | Optional note describing the attachment. | |
| record_type | Yes | "property" = a listing (document belongs to the property itself, not to any one deal on it), "client" = a represented party (document belongs to the client itself), "prospect" = one deal under a property (landlord-rep), "location" = one deal under a client (tenant-rep), "pursuit" = a client or listing the broker is trying to win (from list_pursuits): letters, proposals and the like. Its files stay with it after it is won, read-only. | |
| content_type | No | Optional MIME hint for the linked file, e.g. "application/pdf". Useful when the URL has no file extension; improves later text extraction. | |
| attachment_type | No | Document type/category, e.g. "LOI", "Lease", "PSA". Created for your company if it does not exist yet. | |
| shown_on_report | No | Whether this attachment appears on the activity report (the "Shown on activity report" flag). |