Say what files are
Says what one file is, or up to 100 at once: title, notes, document date, correspondent, type, tags and fields.
$0.005 per file changed
From your agent’s balance. A call that fails costs nothing.
An example
File the bill from Cascade Bike Supply: invoice CBS-2026-1188 from October 13, total $462.50, tag it tax 2026.
Your agent callsfiles_edit$0.005 per file changed
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_ids": [
"2f4a6c8e-0b3d-4f5a-9c7e-1b3d5f7a9c2e"
],
"title": "Cascade Bike Supply invoice CBS-2026-1188",
"correspondent": "Cascade Bike Supply",
"document_type": "Invoice",
"document_date": "2026-10-13",
"add_tags": [
"tax 2026"
],
"fields": {
"Total": "USD 462.50"
}
}Use it when
A file arrived and should be filed so it can be found later.
What it does
Set what one file is, or up to 100 at once, all or none: title, notes, document_date (the date on the document), correspondent (who it is from or to; made the first time a file names it), document_type, tags (replace them all; [] clears), add_tags, remove_tags, and fields ({"Total": "EUR 119.00", "Due": "2026-11-01"}; null clears one). null clears title, notes, the date, the correspondent or the type. Types, tags and fields must be defined first (files_define). Conecto never files anything on its own: you decide what each file is. $0.005 per file changed.
What comes back
files: each changed file with its new title, tags, type, correspondent, date and fields. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
file_idsRequired | array of strings | 1 to 100 items. |
title | string or null | Up to 300 characters. |
notes | string or null | Up to 20,000 characters. |
document_date | string or null | YYYY-MM-DD, or null. Matches ^\d{4}-\d{2}-\d{2}$. |
correspondent | string or null | Up to 200 characters. |
document_type | string or null | Up to 60 characters. |
tags | array of strings | Up to 50 items. |
add_tags | array of strings | Up to 50 items. |
remove_tags | array of strings | Up to 50 items. |
fields | object |
The call
Over MCP, call files_edit on https://api.conecto.chat/mcp/files. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/files_edit \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"file_ids":["2f4a6c8e-0b3d-4f5a-9c7e-1b3d5f7a9c2e"],"title":"Cascade Bike Supply invoice CBS-2026-1188","correspondent":"Cascade Bike Supply","document_type":"Invoice","document_date":"2026-10-13","add_tags":["tax 2026"],"fields":{"Total":"USD 462.50"}}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
not_found404 | A tag, document type, field or correspondent named is not defined yet. | Define it with files_define first; files_definitions lists what exists. |
not_found404 | A file_id is not a file of the business. | Find the files with files_list. |
invalid_input400 | Nothing to change was given, or a field value does not fit its type. | Send what changes; money like "USD 462.50", dates like 2026-10-13. |
limit_reached409 | The business has as many correspondents as it may. | Reuse one that exists. |
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* - Get a file
files_getOne file's details and a fresh download link, with the text of a small text file if asked.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* - 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