Get Apex Trigger Source
sf_get_apex_triggerRetrieve the full source code of an Apex trigger by its exact name, including its body, target object, active status, and configured trigger events, to review or prepare for modifications.
Instructions
Retrieves the full source code of an existing Apex trigger by exact name, via the Tooling API. Returns the trigger body, the object it fires on, its active status, and which trigger events (before/after insert/update/delete/undelete) it's registered for. Use before modifying a trigger, or when a user asks to see or explain an existing trigger.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| triggerName | Yes | Apex trigger name (exact match), e.g. 'AccountTrigger' |