execute-apex
Execute anonymous Apex code with automatic debug log capture for real-time troubleshooting and testing.
Instructions
Execute anonymous Apex code with debug log capture
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": {
"apexCode": "<apexCode>"
},
"name": "execute-apex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apexCode | Yes | Anonymous Apex code to execute | |
| captureDebugLogs | No | Capture debug logs from execution (default: true) |