list_accounts
Fetch accounts (companies) from a saved Freshsales view by providing a view_id. Obtain the view_id first via list_views for sales_accounts to browse, sort, and page through company records.
Instructions
List accounts (companies) from a saved view. Call list_views(module="sales_accounts") first to get a view_id.
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": {
"view_id": "<view_id>"
},
"name": "list_accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| sort | No | Field name to sort by | |
| view_id | Yes | View id from list_views | |
| per_page | No | ||
| sort_type | No |