Tool reference · 11 tools

Photos and avatars

Upload or import photos (straightened, color-corrected, resized and stripped of location data for you), describe them, edit them, put them in albums, and the gym's own avatars.

Ask it in plain words

  • "Here are five photos from Saturday's open gym: add them to the gallery."
  • "Crop Coach Sam's headshot closer to the face."
  • "Put the birthday photos in a Parties album."

Worked examples: Import photos from links.

upload_photo

Add a photo to the website ChangesWeb developer

Put a photo on the website, everything done for you: it is straightened, color-corrected (a headshot is also framed so the face is centered), resized for phones and computers, converted to a fast format, stripped of camera and location data and checked for duplicates. You write its description from what you see. Use this whenever the owner attaches a photo in the chat (ChatGPT passes it as image). Pick the purpose from what the owner says and what the photo shows (a single coach's face = coach_headshot, a coach on an obstacle = coach_action, a group in team shirts = team, otherwise gallery); ask when it's unclear, and ask which coach or product when that's needed. If this app can't hand the photo over, use request_photo_upload instead.

ParameterTypeDescription
imageobjectThe photo the owner attached in this chat (ChatGPT hands it over as a file).
image.download_url requiredstringThe attached file's download link, as the chat app hands it over
image.file_id requiredstringThe attached file's id in the chat app
image.mime_typestringThe file's type, e.g. image/jpeg or image/png
image.file_namestringThe file's name as the owner attached it
purposestring: gallery | coach_action | coach_headshot | team | home_hero | classes_page | pricing_page | competitions_page | party_room | product | event_flyer | avatar | pageWhere it goes (default gallery): page = a picture for a page you build in Website > Pages (kept in your library only; use it in a section as /media/u/<photo_id>-1000.webp); gallery = the Photos page (also the home page's photo row while it has room); coach_action = a coach on the course (their card and the Photos page); coach_headshot = the round picture on a coach's card; team = a team photo; home_hero = the big picture at the top of the home page; classes_page / pricing_page / competitions_page = the picture at the top of that page; party_room = the Birthday parties page (up to 4); product = a shop product's photos (up to 10); event_flyer = the flyer or picture of a special event (name it in event); avatar = one of the gym's own avatars that athletes pick as their profile picture (description = its short name, like Rocket Raccoon)
coachstringThe coach's name, for coach_headshot and coach_action
productstringThe product's name, for product
eventstringThe special event's title, for event_flyer
descriptionstringRequired with image or image_base64 (not for a headshot or product): one plain sentence you write from the photo saying what happens in it, for visitors who can't see it and for Google. Never guess anyone's name, age or traits.
image_urlstringInstead of image: an https link straight to the picture file
image_base64stringInstead of image: the JPEG, PNG or WebP file, base64-encoded (up to about 3 MB)
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "upload_photo",
    "arguments": {}
  }
}

request_photo_upload

Get a link for the owner to upload photos ChangesWeb developer

A private link (good for an hour) where the owner picks photos from their phone or computer: up to 20 at once for the Photos page, coaches in action and team photos, 4 for the party room, 10 for a product, 1 for a headshot, a page's top picture or a special event's flyer. Each photo is prepared exactly like upload_photo. Use it when the photo can't be handed over in the chat (for example in Claude, or for many photos at once). When the owner says they're done, call photos_to_describe: it shows you the new photos so you can write each description and save it with update_photo.

ParameterTypeDescription
purposestring: gallery | coach_action | coach_headshot | team | home_hero | classes_page | pricing_page | competitions_page | party_room | product | event_flyer | avatar | pageWhere they go (default gallery): page = a picture for a page you build in Website > Pages (kept in your library only; use it in a section as /media/u/<photo_id>-1000.webp); gallery = the Photos page (also the home page's photo row while it has room); coach_action = a coach on the course (their card and the Photos page); coach_headshot = the round picture on a coach's card; team = a team photo; home_hero = the big picture at the top of the home page; classes_page / pricing_page / competitions_page = the picture at the top of that page; party_room = the Birthday parties page (up to 4); product = a shop product's photos (up to 10); event_flyer = the flyer or picture of a special event (name it in event); avatar = one of the gym's own avatars that athletes pick as their profile picture (description = its short name, like Rocket Raccoon)
coachstringThe coach's name, for coach_headshot and coach_action
productstringThe product's name, for product
eventstringThe special event's title, for event_flyer
descriptionstringOnly when the owner already said what the (first) photo shows; otherwise the website writes descriptions itself
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "request_photo_upload",
    "arguments": {}
  }
}

edit_photo

Crop, zoom, turn or brighten a photo, change its background, or edit a coach's headshot Changesdry_run

Edit one of the gym's photos like a photo app: crop it to a shape, zoom in on what matters, turn, mirror or straighten it, make it brighter or more colorful, or put the people on a plain background (a studio look for coach cards and flyers). With coach, edit that coach's headshot the same way (Coaches > Edit Headshot). Saving makes an edited copy (the original stays for History) and, by default, puts it everywhere the original was on the website, including the pages built in Website > Pages (their live page and draft; built_pages lists them, and each can be put back with restore_change). Describe the edit and ask first; use dry_run to check.

ParameterTypeDescription
photostringphoto_id from list_photos, or a picture address from list_pictures (the gym's own photos only). Not needed with coach
coachstringEdit this coach's headshot instead (the name from get_coaches): it is cut square from the coach's original photo and shown in a circle; zoom, center_x / center_y, light and background apply, and earlier headshot edits are kept unless changed
backgroundstringPut the people in the photo on a plain background: white, light_gray, your_color (the gym's brand color), your_dark_color, or a color like #1e90ff; keep = the photo's own. Works best on photos of people. A photo with a new background is saved as a new photo unless everywhere is true
shapestring: original | square | wide | 4:3 | 3:2 | tall | phoneCrop to a shape: wide 16:9 (page tops), square (cards), tall 4:5 (social posts), phone 9:16 (stories). Default original
zoomnumber1 = the whole photo fits the shape; 2 = twice as close. It stops before the photo would look blurry
center_xnumberWhat to keep in the middle, 0-100 % across (50 = middle)
center_ynumber0-100 % down (50 = middle; faces are often 30-40)
turnstring: none | right | left | upside_downTurn the photo a quarter right, a quarter left or upside down
mirrorbooleantrue flips the photo left to right
straightennumberDegrees, -15 to 15: tilt to make a crooked photo level (+ turns it clockwise)
lookstring: original | brighter | vivid | soft | black_and_whiteA color look: brighter, vivid, soft or black and white; original undoes them
brightnessnumberPercent, 50-150 (100 = unchanged); overrides look
contrastnumberPercent, 50-150
colornumberPercent, 0-200 (0 = black and white)
everywherebooleanDefault true (false with a new background): the edited photo replaces the original everywhere the site uses it. false = only add the edited copy to the library (then use_as with update_photo, or list_pictures + update_page, to place it)
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "edit_photo",
    "arguments": {
      "dry_run": true
    }
  }
}

update_photo

Change a photo's description or where it shows Changesdry_runWeb developer

Fix the description of an uploaded photo (it changes everywhere the photo appears), also show a photo somewhere else (such as the big picture at the top of the home page), or change its framing and zoom: the spot pages keep in view and how far they zoom in, like a coach's card background with heads cut off (Frame & Zoom in the back office). Get photo_id from list_photos or upload_photo's answer; for framing, a picture address from list_pictures works too.

ParameterTypeDescription
photo_id requiredstringThe photo's id, from list_photos
descriptionstringA new one-sentence description of what the photo shows
use_asstring: gallery | coach_action | coach_headshot | team | home_hero | classes_page | pricing_page | competitions_page | party_room | event_flyer | avatar | pageAlso show it here: page = a picture for a page you build in Website > Pages (kept in your library only; use it in a section as /media/u/<photo_id>-1000.webp); gallery = the Photos page (also the home page's photo row while it has room); coach_action = a coach on the course (their card and the Photos page); coach_headshot = the round picture on a coach's card; team = a team photo; home_hero = the big picture at the top of the home page; classes_page / pricing_page / competitions_page = the picture at the top of that page; party_room = the Birthday parties page (up to 4); product = a shop product's photos (up to 10); event_flyer = the flyer or picture of a special event (name it in event); avatar = one of the gym's own avatars that athletes pick as their profile picture (description = its short name, like Rocket Raccoon)
coachstringThe coach, for coach_action
eventstringThe special event, for event_flyer
center_xnumberFraming: the spot every page keeps in view when it crops the photo, percent across (0 left, 100 right). Use when a head or the action is cut off.
center_ynumberFraming: percent down (0 top, 100 bottom); 20-35 keeps faces in a group shot
zoomnumberZoom in on that spot, 1 (none) to 3. The file isn't changed; edit_photo makes a cropped copy instead.
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_photo",
    "arguments": {
      "photo_id": "<photo_id>",
      "dry_run": true
    }
  }
}

set_photo_album

Put photos in an album Changesdry_run

Group Photos page photos into albums: photos in the same album show together under the album's name on the Photos page, with links to each album at the top. Send an empty album to take photos out of their album. Same as Select Several > Put in Album on the back office's Photos page.

ParameterTypeDescription
photos requiredarray of stringphoto_id values from list_photos, or picture addresses of NinjaHQ's photos from list_pictures
albumstringThe album's name, for example Birthday parties. Empty takes the photos out of their album.
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_photo_album",
    "arguments": {
      "photos": [],
      "dry_run": true
    }
  }
}

photos_to_describe

See uploaded photos that still need a description ReadsWeb developer

Shows you (as images) up to 6 uploaded photos whose description is still a placeholder, usually ones the owner added through an upload link. Look at each, write one plain sentence about what happens in it (never guessing anyone's name, age or traits), and save it with update_photo. If one isn't right for a family gym's public website, tell the owner and offer to remove it.

Takes no parameters.

Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "photos_to_describe",
    "arguments": {}
  }
}

list_photos

Photos the gym has uploaded ReadsWeb developer

Photos added through this connector, newest first: id, what they show (the description), where they are used, and whether the description is still a placeholder. A photo that was taken off the site stays listed as kept for History until it is deleted for good.

Takes no parameters.

Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_photos",
    "arguments": {}
  }
}

remove_photo

Take a photo off the site Changesdry_runconfirm

Take an uploaded photo off the site (a headshot goes back to the coach's initials). Ask the owner to confirm first. It can be put back from History, because the photo itself is kept. Only when the owner wants it gone completely, send delete_permanently: true as well: that cannot be undone.

ParameterTypeDescription
photo_id requiredstringThe photo's id, from list_photos
confirmbooleanMust be true, after the owner has said yes
delete_permanentlybooleantrue = also delete the stored photo for good (owners only). It can then NOT be put back from History. Only when the owner asks to delete it completely.
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "remove_photo",
    "arguments": {
      "photo_id": "<photo_id>",
      "dry_run": true
    }
  }
}

list_avatars

The gym's own avatars Reads

The gym's own avatars (pictures athletes pick for their profile, registration and family account), with how many athletes picked each, and NinjaHQ's built-in avatars (key, name, group: Badges, Animals, Silly or Athletes) with whether this gym hides them, plus drawing_request: the words to give an AI that draws pictures (ChatGPT, Gemini) so every avatar matches the set. Use it when the owner wants to make, see or change their avatars.

ParameterTypeDescription
subjectstringOptional: what the next avatar should show (for example "our mascot Rocket the raccoon on the warped wall"); the answer's drawing_request uses it
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_avatars",
    "arguments": {}
  }
}

update_avatar

Rename, hide or show avatars Changesdry_run

Rename one of the gym's own avatars, or hide or show avatars in this gym's pickers: its own (id) or NinjaHQ's built-in ones (id or ids = their keys; they keep their names). Owners and managers. Nothing is deleted, and athletes who picked a hidden one keep it.

ParameterTypeDescription
idstringThe gym's own avatar's id, or one of NinjaHQ's avatars' key, from list_avatars
idsarray of stringInstead of id: several of NinjaHQ's avatars' keys to hide or show at once (for example every Silly one)
namestringA new short name (40 characters at most)
hiddenbooleantrue takes it out of the picker (athletes who picked it keep it); false shows it again
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_avatar",
    "arguments": {
      "dry_run": true
    }
  }
}

import_photo_from_url

Add photos from links ChangesWeb developer

Add pictures from https links when they can't be attached in the chat: the website downloads each one (public web addresses only, 10 seconds and 4 MB at most, it must be an image) and prepares it exactly like upload_photo (straightened, color-corrected, resized, camera and location data removed, duplicates found). Up to 20 links in one call with urls; each gets its own result. Only use a picture the gym owns or has the right to use (its own photos and logo, or ones it licensed); never one copied from someone else's website. Owners and the web developer.

ParameterTypeDescription
urlstringOne https link straight to a picture file
urlsarray of objectInstead of url: up to 20 links, each a string or { url, description }
urls[].urlstringThe picture's https:// address
urls[].descriptionstringOne plain sentence about what the photo shows, for screen readers
purposestring: gallery | coach_action | coach_headshot | team | home_hero | classes_page | pricing_page | competitions_page | party_room | event_flyer | avatar | page | logo | logo_on_dark | faviconWhere they go, as for upload_photo (default gallery); logo, logo_on_dark and favicon set the site's logo or icon (one link)
coachstringThe coach's name, for coach_headshot and coach_action
eventstringThe special event's title, for event_flyer
descriptionstringOne plain sentence about what the photo shows, when you know (one link). Without one the photo gets a placeholder; then look at it with photos_to_describe and save a description with update_photo.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "import_photo_from_url",
    "arguments": {}
  }
}

All 318 tools

Ask NinjaHQ

Answers from our Help Center and website

Ask anything about NinjaHQ, or try:

AI answers from NinjaHQ's own pages and can make mistakes. Your questions are sent to Anthropic, the AI company, to answer; NinjaHQ doesn't keep them. Privacy