Validate a schema sync document
validate_sync_documentCheck a schema sync document (sync-v1) as far as possible without an account: against the JSON schema the API uses, the API's rules for keys and indexes, and every rule set and flow in it with their tests. Documents that reference files (rulesFile, flowFile and their tests) are checked too if the files' contents are given in files. What a sync would change needs the account: the API server's plan_schema_sync, or jsonpad sync-schema --dry-run.
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": {
"document": "<document>"
},
"name": "validate_sync_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | The contents of files the document references, keyed by the path written in the document, e.g. { "rules/games.rules": "allow ..." } | |
| document | Yes | The schema sync document |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| problems | Yes |