Images

Read an image's details

image_info · Reads only · Markdown

An image's width, height, format and size, and whether it has transparency.

Free*

*Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads.

An example

Is the new logo file big enough for the invoices, and does it have a transparent background?

Your agent callsimage_infoFree*

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_id": "3d5f7b9d-1f3b-4d7f-8b1d-5f7b9d1f3b6d"
}
What comes back
{
  "file_id": "3d5f7b9d-1f3b-4d7f-8b1d-5f7b9d1f3b6d",
  "width": 1200,
  "height": 400,
  "format": "png",
  "mode": "RGBA",
  "transparent": true,
  "size": "1.9 KB"
}

Use it when

Before an image goes somewhere with size rules: a logo, a social post, a product page.

What it does

Width, height, format and whether it has transparency.

What comes back

The file_id, width, height, format, mode, transparent and size. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
file_idRequiredstringAn image in the file store. Exactly 36 characters.

The call

Over MCP, call image_info on https://api.conecto.chat/mcp/images. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/image_info \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file_id":"3d5f7b9d-1f3b-4d7f-8b1d-5f7b9d1f3b6d"}'

When it refuses

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

CodeWhenWhat to do
not_found404No file in the store has that file_id.Find it with files_list.
not_image400The file is not an image that can be read (PNG, JPEG, WebP, AVIF, GIF, BMP or TIFF).Upload the image again in one of those formats.
too_large413The image is over 40 megapixels.Ask for a smaller copy of it.

Give this to your agent.

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