Attach a file from the chat
attach_fileAttach the file your human gave you in this chat to an item; with as "photo", a picture they say is of the place, stay or option, shown as its photo (never a ticket, a screenshot or a QR code). Only when they ask. For hosts that pass files to tools (ChatGPT fills in file itself): Tripmo fetches it from the host and keeps it on the record's card (ready on the phone without signal) if it's a PDF or an image up to 20 MB. If the file doesn't come through (ChatGPT's phone apps don't pass files yet), the reply has a link to give your human instead. Without a host that passes files, use upload_link. Never paste a file's contents into a call.
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": {
"trip": "<trip>",
"record": "<record>",
"file": "<file>"
},
"name": "attach_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | Leave it out, or "file", for a ticket, a confirmation, a screenshot or a QR code. "photo" only when your human says it's a picture of the place (an image): it then shows as the item's photo. | |
| file | Yes | The file your human attached in this chat (ChatGPT passes it). | |
| trip | Yes | The trip id, e.g. "trp_8Kd2…", from list_trips. | |
| record | Yes | The item (itm_…) the file goes on. |