Get Apex Class Source
sf_get_apex_classRetrieve the full source code of an Apex class by name via the Tooling API. Use to inspect current logic before modifying or debugging, returning the class body, API version, and status.
Instructions
Retrieves the full source code of an existing Apex class by exact name, via the Tooling API. Use before modifying a class (to see current logic), when debugging, or when a user asks "show me the X class" / "what does this class do". Returns the class body, API version, and status. Not to be confused with sf_create_apex_class, which deploys new or updated code — this tool only reads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| className | Yes | Apex class name to retrieve |