People Search Contacts
people_search_contactsSearch saved Google contacts by name, email, phone, or organization prefix, or list all contacts page by page with sorting and pagination.
Instructions
Find the user's saved Google contacts whose name, email, phone or organization starts with query, or, without query, list every saved contact page by page (sort_order, page_token). A search returns at most 30 matches in one response with no paging. Returns contacts, each with resource_name (the person_name other people_ tools take; also as id), etag, name, given_name, family_name, emails and phones (each {value, type}), organizations ({name, title}) and biography; plus count, total (all saved contacts, null for a search) and next_page_token (null for a search).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "people_search_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Text matched against the start of the words in contacts' names, email addresses, phone numbers and organizations, e.g. 'jo' finds 'John Smith' but 'ohn' does not; omit it to list every saved contact, page by page. | |
| sources | No | Which data each returned person carries: READ_SOURCE_TYPE_CONTACT (the saved contact, the default when omitted), READ_SOURCE_TYPE_PROFILE (the person's Google profile, merged in) and READ_SOURCE_TYPE_DOMAIN_CONTACT (the organization's shared domain contacts). | |
| page_size | No | Contacts per response. Listing (no query): 1 to 1000, default 100. Searching: 1 to 100, default 20, and Google returns at most 30 matches. | |
| page_token | No | The next_page_token of the previous listing response; omit for the first page. Listing only: a search has no further pages. | |
| sort_order | No | Order when listing: LAST_MODIFIED_ASCENDING (Google's default when omitted), LAST_MODIFIED_DESCENDING, FIRST_NAME_ASCENDING or LAST_NAME_ASCENDING. Not allowed with query, whose matches come in Google's relevance order. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of items in this response. | |
| total | No | ||
| contacts | No | ||
| has_more | No | Whether another page is available. | |
| fetched_at | No | RFC3339 time when this response was fetched. | |
| next_page_token | No | Opaque token for the next page, or null. |