get_contacts
Retrieve contacts from a Nextcloud address book with pagination. Specify a book ID, limit, and offset to filter results, returning contact details like names, emails, phones, and addresses.
Instructions
Get contacts from an address book.
Args: book_id: Address book ID (default "contacts"). Use list_addressbooks to find IDs. limit: Maximum number of contacts to return (1-500, default 50). offset: Number of contacts to skip for pagination (default 0).
Returns: JSON with "data" (list of contact objects with uid, full_name, name, emails, phones, addresses, organization, title, note) and "pagination" (count, offset, limit, has_more).
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": "get_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| book_id | No | contacts |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |