Tool reference · Settings and devices

update_my_qr_card

Fill in your QR Card

Every userdestructive

POST /v1/actions/update_my_qr_card · MCP tool update_my_qr_card

Adds, changes or takes off what the user filled in about themselves on My QR Card, and who sees each, and changes the card itself, its color, photo, what a scan of it offers and its link, as My QR Card does, then answers with the whole card as my_qr_card does. Each detail shows live on the cards other people have of them, at their phones’ next sync: to everyone who has their card, or to shared, only the people they share their contact with, which phone numbers, emails, addresses and a birthday start as, and the rest everyone. Their own mobile number and primary email are already on it and never a detail. Everything given is checked before anything changes, and a refusal changes nothing. Confirm what goes on it, and who sees it, with the user first, and a new link above all, since the old one stops working at once.

View as Markdown

Parameters

ParameterTypeRequiredLimitsWhat
add{ type: "title" | "company" | "phone" | "email" | "address" | "url" | "birthday" | "social" | "note", label?: string, value: string, to?: "everyone" | "shared" }[]optionalup to 30
change{ id: string, label?: string, value?: string, to?: "everyone" | "shared" }[]optionalup to 30
removestring[]optionalup to 30Ids of details to take off the card, from my_qr_card.
photo_to"everyone" | "shared"optionalWho sees their photo on their cards of them: everyone or shared.
colorstringoptionalThe card’s color, a hex code like #0B6870, the one thing about its look the user picks (D125, D142): refused where it would pass for Silver or Gold, or where phones couldn’t scan the card in it. Until they pick one it wears the color of the group they own that the most people joined, or their one group’s, or blue.
photostring or nulloptionalTheir photo, which fills their QR Card with their code small at its bottom left and is on everyone’s cards of them, as photo_to says: a JPEG or PNG as base64, or an https link to one, up to 15 MB, which Openbook fetches only from the public internet; null takes it off, for their initials.
photo_file{ download_url: string, file_id: string, mime_type?: string, file_name?: string }optionalA photo of themselves the user attached in ChatGPT, which becomes their photo, in place of photo.
openbook_on_photobooleanoptionalWhether Openbook’s logo shows at the bottom right of their QR Card, on until it’s turned off. Only some accounts can turn it off, and a refusal says why; anyone turns it back on.
original_photobooleanoptionalOriginal photo: true shows their own photo, or with none the initials their phones draw, on their own card, with no QR code. Only some accounts can turn it on, and a refusal says why; anyone turns it off.
groups{ id: string, on_card: boolean }[]optionalup to 100
contact_on_group_codesbooleanoptionalWhether someone who scans the code of a group they invite people to can request their contact too, which reaches them once they say yes. Their own code always offers it.
new_linktrueoptionaltrue makes a new link and QR code for their card: the old ones stop working at once, so nobody they gave them to can open them, while contacts already saved stay saved.

Who can use it

Every user has it. A person’s tool list only includes it when they can use it, and clients like ChatGPT see the same list.

Annotated destructive, so clients like ChatGPT ask the person before calling it.

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/update_my_qr_card \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "add": [
    {
      "type": "title",
      "value": "Head Coach"
    },
    {
      "type": "phone",
      "label": "work",
      "value": "(415) 555-0168",
      "to": "shared"
    }
  ]
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_my_qr_card",
    "arguments": {
      "add": [
        {
          "type": "title",
          "value": "Head Coach"
        },
        {
          "type": "phone",
          "label": "work",
          "value": "(415) 555-0168",
          "to": "shared"
        }
      ]
    }
  }
}