Inspect Template Structure
inspect_template_structureInspect a template document's native structure, tags, and fallback risk before instantiation to verify compatibility and prevent broken generated docs.
Instructions
Inspect a template doc's native structure, tags, and fallback risk before instantiation.
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": {
"templateDocId": "<templateDocId>"
},
"name": "inspect_template_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. | |
| templateDocId | Yes | The template doc to inspect. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| tags | No | ||
| error | No | ||
| title | No | ||
| blocks | No | ||
| noteId | No | ||
| pageId | No | ||
| details | No | ||
| causeCode | No | ||
| retryable | No | ||
| surfaceId | No | ||
| blockCount | No | ||
| workspaceId | No | ||
| rootBlockIds | No | ||
| templateDocId | No | ||
| fallbackReasons | No | ||
| recoveryGuidance | No | ||
| nativeCloneSupported | No |