Files

Set how scans are read

files_ocr_settings · Changes data · Markdown

Sets whether new scans are read with OCR as they arrive, and the languages OCR reads in.

$0.001 a call

From your agent’s balance. A call that fails costs nothing.

An example

Read every scan that comes in automatically, in German and English.

Your agent callsfiles_ocr_settings$0.001 a call

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
{
  "auto_ocr": true,
  "languages": [
    "deu",
    "eng"
  ]
}
What comes back
{
  "ocr": {
    "auto_ocr": true,
    "languages": [
      "deu",
      "eng"
    ],
    "languages_chosen": true,
    "available": true,
    "price_per_page": "$0.005",
    "languages_supported": [
      "eng",
      "deu"
    ]
  }
}

Use it when

Scans come in often (receipts, delivery notes) and should be searchable without asking.

What it does

auto_ocr: read every new scan (an image, or a PDF without text) with OCR as it arrives, $0.005 a page, charged from the balance; a scan the balance can't cover stays unread and says why. Off by default: scans are then read when you ask (files_ocr). languages: the ones OCR reads in, up to 3 ([] goes back to the account's language: its website's, else its country's, else English). $0.001.

What comes back

The OCR settings: auto_ocr and the languages. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
auto_ocrboolean
languagesarray of stringsUp to 3 of eng, deu, fra, spa, ita, nld, por, swe. Up to 3 items. One of: eng,deu,fra,spa,ita,nld,por,swe.

The call

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

Terminal
curl -X POST https://api.conecto.chat/v1/tools/files_ocr_settings \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"auto_ocr":true,"languages":["deu","eng"]}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
invalid_input400A language is not one OCR reads here, or there are more than 3.Use up to 3 of eng, deu, fra, spa, ita, nld, por, swe.
invalid_input400Neither auto_ocr nor languages was given.Send one of them.

Give this to your agent.

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