Create Sandbox
sf_create_sandboxCreates a new Salesforce sandbox via the Tooling API, supporting Developer, Developer Pro, Partial Copy, and Full types. Optionally runs an Apex class after copy; creation is asynchronous, so monitor status.
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 |