salesforce_execute_apex
Execute anonymous Apex code in Salesforce to run custom logic, tests, and data operations on the fly, without deployment.
Instructions
Execute anonymous Apex code.
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": {
"apex_body": "<apex_body>"
},
"name": "salesforce_execute_apex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | No | ||
| apex_body | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||