create_contact
Create a new contact in an address book with name, email, phone, organization, title, or notes. Returns the saved contact object.
Instructions
Create a new contact in an address book.
Provide at least full_name, or given_name/family_name.
For a single email/phone, use the email/phone params. For multiple, use emails/phones with an array of {"value","type"} objects: emails=[{"value":"a@b.com","type":"WORK"},{"value":"a@home.com","type":"HOME"}] Do not provide both email and emails (or phone and phones).
Args: full_name: Full display name (e.g. "John Doe"). given_name: First name (e.g. "John"). family_name: Last name (e.g. "Doe"). email: Single email address (convenience, adds as TYPE=WORK). phone: Single phone number (convenience, adds as TYPE=CELL). emails: Array of {"value","type"} for multiple emails. Overrides email. phones: Array of {"value","type"} for multiple phones. Overrides phone. organization: Company/organization name. title: Job title. note: Free-text note. book_id: Address book ID (default "contacts").
Returns: JSON contact object with uid, full_name, and all set fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| No | |||
| phone | No | ||
| title | No | ||
| emails | No | ||
| phones | No | ||
| book_id | No | contacts | |
| full_name | No | ||
| given_name | No | ||
| family_name | No | ||
| organization | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |