get_clean_target_plan
Inspect the live cleanup plan for a migration target before approving destructive actions. Get availability, confirmation project ref, and per-scope deletion counts for database, storage, and project.
Instructions
Inspect a destructive target cleanup BEFORE asking the user to authorize it. Always call this immediately before presenting cleanup, and never rely on the targetConflictReport from an earlier get_migration: that is a snapshot taken at discovery, while this is the current state of the target. Returns available (cleanup is only possible before execution starts, and only for Supabase Cloud targets) with unavailableReason when it is not, the exact confirmationProjectRef the user must approve, countsAvailable plus live per-scope rows describing what each of DATABASE, STORAGE and PROJECT would remove, and the cleanupEndpoint. Present the rows and the project ref verbatim, get explicit approval for one exact scope, then pass that ref to clean_migration_target unchanged. If available is false, tell the user the reason — do not call clean_migration_target to find out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Migration ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Parsed JSON response from the Staticbot public API |