filter_contacts
Filter contacts by field, operator, and value conditions to retrieve matching Chatwoot contacts, with optional pagination and account selection.
Instructions
Filter contacts using advanced query conditions. Each filter has field, operator, and value.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filters": "<filters>"
},
"name": "filter_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default: 1) | |
| filters | Yes | Array of filter objects with field, filter_operator, and values (e.g., [{"attribute_key":"city","filter_operator":"equal_to","values":["Paris"]}]) | |
| account_id | No | Chatwoot account ID to use. If omitted, uses the default account from CHATWOOT_ACCOUNT_ID env var. |