Help center

Upload an image

help_center_upload_image · Changes data · Markdown

Stores an image for the design or an article and returns the path to use.

$0.01 a call

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

An example

Here's a photo of the shop floor. Put it in the help center's header.

Your agent callshelp_center_upload_image$0.01 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
{
  "filename": "shop-floor-header.png",
  "data": "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAFUlEQVR42mPUVlFgwAaYGHCAwSkBAFztAH+qHNFaAAAAAElFTkSuQmCC"
}
What comes back
{
  "url": "/api/attachment/1c5f52a5-d26b-4d36-ad4d-f2b1d8aa7dc4/",
  "content_type": "image/png",
  "size": 78
}

Use it when

A logo, header picture, cover or article image is needed.

What it does

Store an image (logo, header or hero background, article cover, picture for an article) and get the path to use in the design or an article. Give a public https `url`, or the file as base64 `data`. PNG, JPEG, GIF, WebP or SVG, up to 5 MB.

What comes back

url: the stored image's path, to use in the design or an article, with its content_type and size in bytes. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
urlstringUp to 2,000 characters.
datastring
filenamestringUp to 120 characters.

The call

Over MCP, call help_center_upload_image on https://api.conecto.chat/mcp/helpcenter. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/help_center_upload_image \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filename":"shop-floor-header.png","data":"iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAFUlEQVR42mPUVlFgwAaYGHCAwSkBAFztAH+qHNFaAAAAAElFTkSuQmCC"}'

When it refuses

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

CodeWhenWhat to do
tool_error422Both or neither of url and data were given, the url is not https or could not be fetched, or the file is not a PNG, JPEG, GIF, WebP or SVG of up to 5 MB.Send exactly one of url or data, with an image in one of those formats.

Give this to your agent.

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