run_sosl_search
Execute SOSL searches in Salesforce with controlled results using RETURNING and LIMIT clauses to optimize data retrieval.
Instructions
Executes a SOSL search against Salesforce.
TOKEN OPTIMIZATION: Use RETURNING clause to limit fields and objects. Example: FIND {searchterm} RETURNING Account(Id, Name), Contact(Id, Name) LIMIT 10
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": {
"search": "<search>"
},
"name": "run_sosl_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: 'csv' (default), 'compact', 'json' | csv |
| search | Yes | The SOSL search to execute. Use RETURNING to specify fields and LIMIT for result count. |