Read an image's details
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.
{
"file_id": "3d5f7b9d-1f3b-4d7f-8b1d-5f7b9d1f3b6d"
}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
| Name | Type | What it is |
|---|---|---|
file_idRequired | string | An image in the file store. Exactly 36 characters. |
The call
Over MCP, call image_info on https://api.conecto.chat/mcp/images. Over REST:
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.
| Code | When | What to do |
|---|---|---|
not_found404 | No file in the store has that file_id. | Find it with files_list. |
not_image400 | The 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_large413 | The 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