Get a file
One file's details and a fresh download link, with the text of a small text file if asked.
Free*
*Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads.
An example
Send me a download link for the insurance policy, valid for a week.
Your agent callsfiles_getFree*
The example business is Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon. The reply is the one the tool really gives.
{
"file_id": "0d2f4a6c-8e1b-4d3f-9a5c-7e9b1d3f5a8c",
"link_hours": 168
}Use it when
A download link is needed, or what a file is.
What it does
One file's details (title, tags, type, correspondent, document date, notes, fields, where it came from, whether Conecto has read its words) and a fresh download link. With include_text, a text file (Markdown, CSV, JSON...) of up to 200 KB also comes back as it is; files_read_text returns the words of any file, scans included once read.
What comes back
file: its details (title, tags, type, correspondent, document date, notes, fields, source, text status) and a download link; with include_text, the text of a small text file. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
file_idRequired | string | The file_id files_upload returned. Exactly 36 characters. |
link_hours | integer | How long the download link works, in hours (up to 168, one week). 1 to 168. Default: 24. |
include_text | boolean | Default: false. |
The call
Over MCP, call files_get on https://api.conecto.chat/mcp/files. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/files_get \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"file_id":"0d2f4a6c-8e1b-4d3f-9a5c-7e9b1d3f5a8c","link_hours":168}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
not_found404 | No file of the business has that file_id. | Find it with files_list. |
More Files tools
All 13 tools- Upload a file
files_uploadStores a file in the business's file store from its bytes, its text or a public link, with a download link.$0.001 a call - Get an upload link
files_upload_linkA one-time link to upload one file of up to 25 MB, to use yourself or hand to a person.Free - Find files
files_listThe business's files, newest first, filtered by name, words inside, tags, type, correspondent, document date or fields.Free* - Read a file's words
files_read_textThe words in a file as Conecto read them: text files, PDFs, office files, HTML, and scans once read with OCR.Free* - Say what files are
files_editSays what one file is, or up to 100 at once: title, notes, document date, correspondent, type, tags and fields.$0.005 per file changed - Define a tag, type, field or correspondent
files_defineAdds, renames or deletes a tag, a document type, a custom field or a correspondent to file things with.$0.001 a call - List tags, types, fields and correspondents
files_definitionsThe tags, document types, custom fields and correspondents the business files with, each with how many files use it, and the OCR settings.Free* - Read a scan with OCR
files_ocrReads the words in a scan with OCR: an image, or the pages of a PDF without text; the text is kept.$0.005 per page read
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md