salesforce_tooling_query
Run SOQL queries against the Salesforce Tooling API to inspect Apex classes, triggers, Visualforce pages, Lightning components, flows, validation rules, and other metadata.
Instructions
Execute a SOQL query against the Tooling API. Use this to inspect Apex classes, triggers, Visualforce pages, Lightning components, flows, validation rules, and other metadata. Example: SELECT Id, Name, Body FROM ApexClass WHERE Name = 'MyClass'
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": {
"query": "<query>"
},
"name": "salesforce_tooling_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The Tooling API SOQL query. Queryable objects include: ApexClass, ApexTrigger, ApexPage, ApexComponent, FlowDefinition, Flow, ValidationRule, WorkflowRule, CustomField, CustomObject, AuraDefinitionBundle, LightningComponentBundle, and more. |