Files

Say what files are

files_edit · Changes data · Markdown

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.

With these arguments
{
  "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"
  }
}
What comes back
{
  "files": [
    {
      "file_id": "2f4a6c8e-0b3d-4f5a-9c7e-1b3d5f7a9c2e",
      "name": "CBS-2026-1188.pdf",
      "content_type": "application/pdf",
      "size": "1.1 KB",
      "size_bytes": 1157,
      "sha256": "210badbad5d529776febed04fc51a2dc054611eeff2af5b39e00f93729dd5a0a",
      "created_at": "2026-10-14T08:00:00+00:00",
      "download_url": "https://cncto.co/d/2f4a6c8e-0b3d-4f5a-9c7e-1b3d5f7a9c2e?t=eyJmIjoiYjJhYTg2NzEtOTUxZS00ZDlmLWI5NGQtZWViYTQ1MTFhNDlkIiwiZXhwIjoxNzkyMTYwNDgyfQ:1xHMKg:n7FZiEahlXq23zrlzrDZMXGGPDW9AxHLakyTQWBmRgw",
      "link_expires_in_hours": 24,
      "title": "Cascade Bike Supply invoice CBS-2026-1188",
      "document_date": "2026-10-13",
      "correspondent": "Cascade Bike Supply",
      "document_type": "Invoice",
      "tags": [
        "tax 2026"
      ],
      "fields": {
        "Total": {
          "amount": "462.50",
          "currency": "USD"
        }
      },
      "notes": null,
      "source": "upload",
      "email_message_id": null,
      "text": {
        "status": "read",
        "method": "text",
        "ocr_pages": null,
        "languages": null,
        "note": null
      }
    }
  ],
  "changed": 1
}

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

NameTypeWhat it is
file_idsRequiredarray of strings1 to 100 items.
titlestring or nullUp to 300 characters.
notesstring or nullUp to 20,000 characters.
document_datestring or nullYYYY-MM-DD, or null. Matches ^\d{4}-\d{2}-\d{2}$.
correspondentstring or nullUp to 200 characters.
document_typestring or nullUp to 60 characters.
tagsarray of stringsUp to 50 items.
add_tagsarray of stringsUp to 50 items.
remove_tagsarray of stringsUp to 50 items.
fieldsobject

The call

Over MCP, call files_edit on https://api.conecto.chat/mcp/files. Over REST:

Terminal
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.

CodeWhenWhat to do
not_found404A tag, document type, field or correspondent named is not defined yet.Define it with files_define first; files_definitions lists what exists.
not_found404A file_id is not a file of the business.Find the files with files_list.
invalid_input400Nothing 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_reached409The business has as many correspondents as it may.Reuse one that exists.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md