CloudKit: Validate Schema
cloudkit_validate_schemaValidate a local .ckdb file against a CloudKit container environment. This read-only check reports whether the schema would be accepted without importing or changing anything.
Instructions
Validate a local .ckdb file against a container environment without importing it. Read-only: it reports whether the schema would be accepted, and changes nothing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"environment": "<environment>",
"filePath": "<filePath>"
},
"name": "cloudkit_validate_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the `.ckdb` file, e.g. "./dev.ckdb". | |
| containerId | No | The iCloud container id, e.g. "iCloud.com.acme.App". Get it from cloudkit_list_containers, or set CLOUDKIT_CONTAINER_ID to default it. | |
| environment | Yes | Which container environment. A Debug build's data and schema live in DEVELOPMENT; TestFlight and App Store builds use PRODUCTION. They are separate databases. |