| abort | No | When true, abort the query job identified by `jobId`. Requires `jobId`. | |
| jobId | No | Existing query job ID. Pass this to wait for a previously submitted job or to abort it. When set, sObject/fields are ignored. | |
| limit | No | (optional) Maximum number of records to return. Omit this for bulk extracts so Salesforce can PK-chunk the query. If you pass LIMIT and the query times out, retry without it. | |
| fields | No | Fields to retrieve. Child-to-parent relationship fields (Account.Name) are supported. Parent-to-child subqueries and aggregate functions are not. Required to start a new job. | |
| orderBy | No | (optional) ORDER BY clause. Note: ORDER BY and LIMIT disable PK chunking and can make large queries slower or time out. | |
| sObject | No | API name of the sObject to query. Required to start a new job. | |
| sf_user | No | (optional) Salesforce username to identify the connection to use. Omit this to use the current default connection. | |
| pageSize | No | (optional) Maximum number of records to return per page when the response requires pagination, including the first page. If omitted, the first page is a short preview and later pages use an automatically calculated size. | |
| queryAll | No | When true, include deleted and archived records (queryAll). Default is false. | |
| whereClause | No | WHERE clause. May include conditions on related objects. Do NOT include APEX snippets or variables: use only literal values. Optional — omit to query all rows of the object. | |
| cirra_ai_team | No | (optional) Cirra team ID or name that owns the Salesforce connection to use for this call. Must be provided together with 'sf_user'. Use it to run against a specific team's connection without changing your default team — e.g. to keep separate chats on Salesforce orgs in different teams. Omit it when this call carries the context_handle from cirra_ai_init, which names the team for the conversation. A user with more than one place to work (several teams, or a team and a personal account) must pass either the context_handle or 'cirra_ai_team' + 'sf_user'. | |
| context_handle | No | (recommended) The conversation context handle returned by cirra_ai_init in this conversation. Pass the exact context_handle value from the most recent cirra_ai_init result so this call runs against the team and Salesforce connection selected for this conversation. A user with more than one place to work (several Cirra AI teams, or a team and a personal account) must pass either this handle or 'cirra_ai_team' + 'sf_user'; a call with neither is refused. | |