Create a file upload link
create_file_uploadCreate a one-time link that uploads one file from a shell with curl.
The bytes go from the local disk to Hail directly, not through the tool call,
so any file that is not tiny goes this way.
An email attachment can be up to 25 MB. A verification document must be
JPG, PNG or PDF, up to 10 MB, and is usable for 1 hour after the upload.
SMS evidence must be a JPG, PNG or PDF of the given ``content_type``, up to 10 MB.
Its upload response has a public ``url`` for an ``*_evidence_url`` field.
Carrier reviewers open it without signing in, so remove personal information first.
A knowledge document is a PDF with text, DOCX, TXT, Markdown, CSV or
XLSX. It can be up to the workspace's file limit (``max_bytes``).
Returns ``id``, ``upload_url``, ``expires_at`` (15 minutes), ``max_bytes``
and a ready ``curl`` line with a ``'FILE_PATH'`` placeholder for the
file's absolute path.
The link needs no key and works once. The upload response holds
``size_bytes`` and ``sha256`` to compare with the local file.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": {
"purpose": "<purpose>",
"filename": "<filename>",
"content_type": "<content_type>"
},
"name": "create_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | Yes | What the file is for. ``email_attachment``: its ``id`` goes in ``send_email``'s ``attachment_ids``. ``verification_document``: its ``id`` goes in the ``files`` of ``check_verification`` and ``submit_verification`` as ``{slot, upload_id}``. ``sms_evidence``: a US texting consent screenshot; the upload response's ``url`` goes in an ``*_evidence_url`` field. Anyone with that link can open the file, and a workspace keeps at most 100. Deleting one needs the console or ``DELETE /v1/verifications/sms/evidence/{organization_id}/{token}``. ``knowledge_document``: its ``id`` goes in ``add_knowledge_document``. | |
| filename | Yes | File name, such as ``passport.pdf``. | |
| llm_model | No | The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics. | |
| content_type | Yes | The file's MIME type, such as ``application/pdf``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||