MCP tools

The AirBuild MCP tool that starts setting a picture: the Team's, a Project's, an Agent's photo, a group chat's, or a chat's wallpaper.

start_picture_upload is the first of the three steps that set a picture: the Team’s picture, a Project’s, an Agent’s photo, a group chat’s picture, or a chat’s wallpaper. It returns an upload link and a ready-made command. The tool does not move the image itself: you upload the bytes with that command (one HTTP PUT), then call finish_picture_upload with the same inputs and the uploadId. Until then nothing changes in the app. The Team’s picture can be set by its owner only; the others by any person on the Team.

  1. Call start_picture_upload with the target, the image’s type and its exact size in bytes.
  2. Run howTo, with <path-to-image> replaced by the file, before expiresAt.
  3. Call finish_picture_upload.
Read-only Destructive Idempotent
No No No

Inputs

Input Type Required Default What it does
teamId string (UUID) Yes — The Team, from list_teams
target team, project, agent, group or wallpaper Yes — Which picture: see Targets
targetId string For all but team — The Project, Agent or chat it belongs to: see Targets. Not used for team
mediaType image/jpeg, image/png or image/webp Yes — The image’s format
byteCount integer, at least 1 Yes — The image’s exact size in bytes. At most 2 MB (2097152 bytes); a wallpaper at most 8 MB (8388608 bytes)

Targets

target The picture targetId Who
team The Team’s picture — The Team’s owner
project A Project’s picture A projectId from list_projects Anyone on the Team
agent An Agent’s photo An agentId from list_team_members Anyone on the Team
group A group chat’s picture A group chat’s channelId (grp.<uuid>) from list_channels Anyone who can see the group
wallpaper A chat’s wallpaper, seen by everyone in it A Project chat, group chat or direct message channelId from list_channels Anyone who can see the chat

Result

Field What
uploadId The upload’s id, for finish_picture_upload
uploadUrl Where the bytes go. Treat it as a secret: anyone with it can upload until it expires
expiresAt When uploadUrl stops working (ISO 8601)
howTo A curl command that uploads the file to uploadUrl. Replace <path-to-image> with the file
{
  "uploadId": "00000000-0000-0000-0000-000000000000",
  "uploadUrl": "https://<upload-host>/<path>",
  "expiresAt": "2026-11-20T10:00:00Z",
  "howTo": "curl -sS -X PUT -H 'Content-Type: image/png' --upload-file <path-to-image> 'https://<upload-host>/<path>'"
}

Errors

Italic words stand for the values in the sentence. Picture is Avatar for every target but wallpaper, and Wallpaper for it.

Message When What to do
target is one of team, project, agent, group, wallpaper. target is something else Use one of the five
targetId is required. target is not team and targetId is missing Give the Project, Agent or chat: see Targets
targetId is not a valid id. Use one from the list tools. targetId is not an agentId or a channelId Take it from the tool in Targets
targetId must be a UUID, from the list tools. target is project and targetId is not a UUID Take the projectId from list_projects
An Avatar must contain at least one byte. byteCount is 0 (for a wallpaper the message starts “A Wallpaper”) Send the image’s real size
The Picture exceeds the N-byte limit. byteCount is over the limit Make the image smaller
Picture must be a JPEG, PNG, or WebP image. mediaType is another format Convert the image
Only the Team’s owner can change the Team’s picture. target is team and you are not the owner Ask the owner
Only a group has a picture of its own. target is group and the chat is a Project chat or a direct message For a Project use target: "project"; a direct message has no picture
Project not found. No Project of this Team has this targetId Take it from list_projects
Team member not found. No Agent on the Team has this targetId Take it from list_team_members
Channel not found. The chat does not exist in this Team, or you cannot see it Use a channelId from list_channels
Image storage isn’t available right now. Try again later. Pictures cannot be stored at the moment Try again later
Team not found. The Team does not exist, or you are not in it Use a teamId from list_teams

The errors every tool can return are on Server and sign-in.

Example

{"name": "start_picture_upload", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "target": "agent", "targetId": "designer", "mediaType": "image/png", "byteCount": 48213}}