Get Apex Class Source
sf_get_apex_classRetrieves the full source code of an existing Apex class by name via the Tooling API. Use to view current logic, debug, or answer questions about what a class does.
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 |