# add_to_private_contacts

**Add people I know to Private Contacts**

Every user · destructive

Adds the people the user knows, from their phone’s contacts or a contacts file, to Private Contacts, whole, which turns on Find people through contacts: people they know can then ask them for one of those contacts, and [`find_people`](https://withopenbook.com/docs/tools/find_people) searches through people they know. Send each contact with everything there is for it, as card, the contact as an iPhone holds it, every name, company, number, email, address, website, birthday and other date, related name, profile and messaging account with its label, and its note, or as fields by type and label; a contact with no number is added too, though only numbers count toward the people they know. When the user attaches a contacts file in ChatGPT, like All Contacts.vcf, pass it as contacts_file and Openbook reads every card in it, photos and all, up to 512 MB, so there’s no need to export it without photos; photos_coming in the result says how many of its photos are still on their way to their contacts, which takes a few minutes; anywhere else, read every field of each card and send it as card. The contacts land in Private Contacts, a group in your own directory, private_contacts in [`my_access`](https://withopenbook.com/docs/tools/my_access), that the first add makes and that’s yours to rename, share or delete like any group, which takes the people the user knows only through this tool, never [`import_contacts`](https://withopenbook.com/docs/tools/import_contacts), and that stays off your phones until you show it with [`update_settings`](https://withopenbook.com/docs/tools/update_settings) groups: its fields start hidden from anyone you share it with, people you know can ask you for one of them when they’re looking for someone, and nothing is shared unless you say yes. Sending a contact again updates it, and each contact’s history keeps what was sent for it, which [`contact_history`](https://withopenbook.com/docs/tools/contact_history) shows and [`revert_contact_change`](https://withopenbook.com/docs/tools/revert_contact_change) puts back. Leave in every contact from the phone, even someone a group already shows: only Openbook’s own cards stay out, and each carries a link to withopenbook.com/contacts, so send each contact’s links in its card or as fields of type url and Openbook leaves those cards out. To keep one out, hide it with [`hide_contacts`](https://withopenbook.com/docs/tools/hide_contacts). Send up to 500 contacts a call, then done: true. They pass through this app’s provider on their way to Openbook.

## Parameters

| Parameter | Type | Required | Limits | What |
|---|---|---|---|---|
| `contacts` | `{ name?: string, fields?: { type: "phone" \| "email" \| "address" \| "url" \| "birthday" \| "company" \| "title" \| "social" \| "name" \| "department" \| "date" \| "relation" \| "im", label?: string, value: string }[], note?: string, card?: { id?: string, kind?: "person" \| "organization", namePrefix?: string, givenName?: string, middleName?: string, familyName?: string, previousFamilyName?: string, nameSuffix?: string, nickname?: string, phoneticGivenName?: string, phoneticMiddleName?: string, phoneticFamilyName?: string, organizationName?: string, phoneticOrganizationName?: string, departmentName?: string, jobTitle?: string, birthday?: { calendar?: string, era?: integer, year?: integer, month?: integer, day?: integer, leapMonth?: boolean }, nonGregorianBirthday?: { calendar?: string, era?: integer, year?: integer, month?: integer, day?: integer, leapMonth?: boolean }, dates?: { id?: string, label?: string, value: { calendar?: string, era?: integer, year?: integer, month?: integer, day?: integer, leapMonth?: boolean } }[], phoneNumbers?: { id?: string, label?: string, value: string }[], emailAddresses?: { id?: string, label?: string, value: string }[], postalAddresses?: { id?: string, label?: string, value: { street?: string, subLocality?: string, city?: string, subAdministrativeArea?: string, state?: string, postalCode?: string, country?: string, isoCountryCode?: string } }[], urlAddresses?: { id?: string, label?: string, value: string }[], contactRelations?: { id?: string, label?: string, value: string }[], socialProfiles?: { id?: string, label?: string, value: { urlString?: string, username?: string, userIdentifier?: string, service?: string } }[], instantMessageAddresses?: { id?: string, label?: string, value: { username?: string, service?: string } }[], note?: string, image?: { data?: string, sha256?: string, bytes?: integer } } }[]` | optional | up to 500 |  |
| `contacts_file` | `{ download_url: string, file_id: string, mime_type?: string, file_name?: string }` | optional |  | A contacts file attached in ChatGPT, like All Contacts.vcf exported from an iPhone with its photos, up to 512 MB, which Openbook reads every card of. |
| `done` | `boolean` | optional |  |  |

## 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](https://withopenbook.com/docs/api#errors).

HTTP:

```bash
curl https://api.withopenbook.com/v1/actions/add_to_private_contacts \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "contacts": [
    {
      "name": "Maria Lopez",
      "fields": [
        {
          "type": "phone",
          "label": "mobile",
          "value": "(510) 555-0119"
        }
      ]
    }
  ],
  "done": true
}'
```

MCP:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_to_private_contacts",
    "arguments": {
      "contacts": [
        {
          "name": "Maria Lopez",
          "fields": [
            {
              "type": "phone",
              "label": "mobile",
              "value": "(510) 555-0119"
            }
          ]
        }
      ],
      "done": true
    }
  }
}
```

> IDs are made up. Get real ones from `my_access` and `search_contacts`, and send the person’s own OAuth token.
