Create Sandbox
sf_create_sandboxCreates a Salesforce sandbox for testing, with license types Developer, Developer Pro, Partial Copy, or Full. Optionally runs an Apex class after copy; monitor via sf_list_sandboxes.
Instructions
Creates a new sandbox org via the Tooling API (SandboxInfo object). Supports Developer, Developer Pro, Partial Copy, and Full sandbox types. Optionally specify an Apex class to run after the sandbox copy completes. The sandbox creation is asynchronous — use sf_list_sandboxes to monitor the status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apexClassId | No | Apex class ID to run after sandbox copy | |
| description | No | Description | |
| licenseType | Yes | Sandbox license type | |
| sandboxName | Yes | Sandbox name (max 10 chars, alphanumeric) | |
| autoActivate | No | Automatically activate the sandbox after creation |