Tool reference · Groups, access and invites

preview_qr_photo

Preview a group’s QR photo

Users with access to a groupread-only

POST /v1/actions/preview_qr_photo · MCP tool preview_qr_photo

Shows a group’s QR photo as iPhones get it, the photo on each of its cards: a picture of it on the group’s code, and one on a contact’s card, the stand-in’s photo with the group’s code small at its foot, never anyone’s real photo. Give it color to see a new color before saving it with manage_groups update; nothing is saved. link opens it in a browser. manage_page is the group’s Manage page, where the person can change its color too. Needs How it looks on the group.

View as Markdown

Parameters

ParameterTypeRequiredLimitsWhat
groupstringrequired
colorstringoptionalup to 9 charactersA color to try, a hex code like #0B6870, saving nothing.

Who can use it

Users get it once they have access to a group, and each call is checked against that access. A person’s tool list only includes it when they can use it, and clients like ChatGPT see the same list.

Annotated read-only, so clients like ChatGPT can call it without asking.

Errors

Errors carry a stable code and a message written for people. See errors and their status codes.

curl https://api.withopenbook.com/v1/actions/preview_qr_photo \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "group": "a1c4e7f0-2b5d-4c8e-9f1a-3b6d9e2c5f80",
  "color": "#0B6870"
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "preview_qr_photo",
    "arguments": {
      "group": "a1c4e7f0-2b5d-4c8e-9f1a-3b6d9e2c5f80",
      "color": "#0B6870"
    }
  }
}