Query search runs
query_search_runsTo see the people or companies one run found, pass its id to list_people or
list_companies as a {"column_key": "run", "operator": "is_any_of", "values": [run ids
as strings]} filter, for the people or companies it found still on the agent, or to
query_search_results as run_id, for the rows of the people or companies it found on the list
it saved to (none for a 'user_added' run, which saves to no list). All of them include the
rejected ones.
A dict with runs and total, the number of matching runs; page with offset += limit while
offset + limit < total. Each run carries id; source, the discovery tool as the
source column of query_search_results names it, or 'user_added' for people the user
added; entity_type, 'person' or 'company', what it looks for, set even when it found
no one; arguments, what the run was called with (for a Websets run, its list's search
settings) and, unless the run's source is 'user_added', list_name, the list it saved
to, even when the call named none; started_at; finished_at, null while a Websets search
is still running; found, the
people or companies it returned, ones the agent already had included; matched and
filtered_out, those whose row in the list the run saved to is qualified or rejected now
(both 0 for people the user added, who get no list row); and new,
those this run brought to the agent: no earlier run returned them and they weren't on
the agent before it started.
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": {
"agent_id": "<agent_id>"
},
"name": "query_search_runs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Runs per page (default 50, max 200). | |
| offset | No | Runs to skip for paging (default 0). | |
| agent_id | Yes | The agent whose search runs to list. | |
| person_id | No | Only the runs that found this person (the person `id` list_people returns). | |
| company_id | No | Only the runs that found this company (the company `id` list_companies returns, or a row's `company_profile_id`). | |
| entity_type | No | Only the runs that look for people ('person') or for companies ('company'); omit for both. | |
| on_behalf_of | No | A teammate's email, or an agency client's from list_agency_clients, to run this call in that account: their agents, settings, connected accounts, and credits. Omit it to act on your own account. |