{ "argumentSchema": { "$defs": { "AnonymousType_1": { "items": { "$ref": "#/$defs/MentionablePiece" }, "type": "array" }, "MentionRef": { "properties": { "destination": { "type": "unknown" }, "modifiedTitle": { "type": "boolean" } }, "required": [ "destination", "modifiedTitle" ], "type": "object" }, "MentionRefMap": { "additionalProperties": { "$ref": "#/$defs/MentionRef" }, "properties": {}, "type": "object" }, "MentionablePiece": { "properties": { "$NAME": { "type": "string" }, "backlinks": { "$ref": "#/$defs/AnonymousType_1" }, "isHidden": { "type": "boolean" }, "mentioned": { "$ref": "#/$defs/AnonymousType_1" } }, "required": [ "mentioned", "backlinks" ], "type": "object" }, "NotePiece": { "properties": { "$NAME": { "type": "string" }, "backlinks": { "$ref": "#/$defs/AnonymousType_1" }, "content": { "type": "string" }, "isHidden": { "type": "boolean" }, "parentNotebook": { "anyOf": [ { "$ref": "#/$defs/NotebookPiece" }, { "type": "null" } ] }, "setTitle": { "asCell": [ "stream" ], "type": "string" }, "summary": { "type": "string" }, "title": { "type": "string" } }, "type": "object" }, "NotebookPiece": { "properties": { "$NAME": { "type": "string" }, "backlinks": { "$ref": "#/$defs/AnonymousType_1" }, "createNote": { "asCell": [ "stream" ], "properties": { "content": { "type": "string" }, "navigate": { "type": "boolean" }, "title": { "type": "string" } }, "required": [ "title", "content" ], "type": "object" }, "createNotebook": { "asCell": [ "stream" ], "properties": { "notesData": { "items": { "properties": { "content": { "type": "string" }, "title": { "type": "string" } }, "required": [ "title", "content" ], "type": "object" }, "type": "array" }, "title": { "type": "string" } }, "required": [ "title" ], "type": "object" }, "createNotes": { "asCell": [ "stream" ], "properties": { "notesData": { "items": { "properties": { "content": { "type": "string" }, "title": { "type": "string" } }, "required": [ "title", "content" ], "type": "object" }, "type": "array" } }, "required": [ "notesData" ], "type": "object" }, "isHidden": { "type": "boolean" }, "isNotebook": { "type": "boolean" }, "notes": { "items": { "$ref": "#/$defs/NotePiece" }, "type": "array" }, "setTitle": { "asCell": [ "stream" ], "type": "string" }, "title": { "type": "string" } }, "required": [ "createNote", "createNotes", "setTitle", "createNotebook" ], "type": "object" } }, "properties": { "content": { "asCell": [ "cell" ], "description": "Writable content cell for checkbox updates", "type": "string" }, "note": { "$ref": "#/$defs/NotePiece", "default": { "backlinks": [], "content": "", "title": "" }, "description": "Cell reference to note data (title + content + backlinks)" }, "references": { "$ref": "#/$defs/MentionRefMap", "asCell": [ "cell" ], "description": "The note's mentions, for resolving `[Label][key]` in its content" }, "sourceNoteRef": { "$ref": "#/$defs/NotePiece", "description": "Direct reference to source note for Edit navigation" } }, "type": "object" }, "pattern": "notes/note-md.tsx", "resultSchema": { "$defs": { "AnonymousType_1": { "items": { "$ref": "#/$defs/MentionablePiece" }, "type": "array" }, "MentionablePiece": { "properties": { "$NAME": { "type": "string" }, "backlinks": { "$ref": "#/$defs/AnonymousType_1" }, "isHidden": { "type": "boolean" }, "mentioned": { "$ref": "#/$defs/AnonymousType_1" } }, "required": [ "mentioned", "backlinks" ], "type": "object" }, "NotePiece": { "properties": { "$NAME": { "type": "string" }, "backlinks": { "$ref": "#/$defs/AnonymousType_1" }, "content": { "type": "string" }, "isHidden": { "type": "boolean" }, "parentNotebook": { "anyOf": [ { "$ref": "#/$defs/NotebookPiece" }, { "type": "null" } ] }, "setTitle": { "asCell": [ "stream" ], "type": "string" }, "summary": { "type": "string" }, "title": { "type": "string" } }, "type": "object" }, "NotebookPiece": { "properties": { "$NAME": { "type": "string" }, "backlinks": { "$ref": "#/$defs/AnonymousType_1" }, "createNote": { "asCell": [ "stream" ], "properties": { "content": { "type": "string" }, "navigate": { "type": "boolean" }, "title": { "type": "string" } }, "required": [ "title", "content" ], "type": "object" }, "createNotebook": { "asCell": [ "stream" ], "properties": { "notesData": { "items": { "properties": { "content": { "type": "string" }, "title": { "type": "string" } }, "required": [ "title", "content" ], "type": "object" }, "type": "array" }, "title": { "type": "string" } }, "required": [ "title" ], "type": "object" }, "createNotes": { "asCell": [ "stream" ], "properties": { "notesData": { "items": { "properties": { "content": { "type": "string" }, "title": { "type": "string" } }, "required": [ "title", "content" ], "type": "object" }, "type": "array" } }, "required": [ "notesData" ], "type": "object" }, "isHidden": { "type": "boolean" }, "isNotebook": { "type": "boolean" }, "notes": { "items": { "$ref": "#/$defs/NotePiece" }, "type": "array" }, "setTitle": { "asCell": [ "stream" ], "type": "string" }, "title": { "type": "string" } }, "required": [ "createNote", "createNotes", "setTitle", "createNotebook" ], "type": "object" } }, "properties": { "$NAME": { "type": "string" }, "$TILE_UI": { "$ref": "https://commonfabric.org/schemas/vnode.json", "description": "Tile variant (CT-1764): minimal embedded UI for ``." }, "$UI": { "$ref": "https://commonfabric.org/schemas/vnode.json" }, "checkboxToggle": { "asCell": [ "stream" ], "description": "Stream to toggle checkboxes in content", "properties": { "detail": { "properties": { "checked": { "type": "boolean" }, "index": { "type": "number" } }, "required": [ "index", "checked" ], "type": "object" } }, "required": [ "detail" ], "type": "object" }, "goToEdit": { "asCell": [ "stream", "opaque" ], "description": "Stream to navigate back to source note for editing" }, "hasBacklinks": { "description": "Whether backlinks section should be visible", "type": "boolean" }, "isHidden": { "description": "Hidden from default-app piece list", "enum": [ true ], "type": "boolean" }, "isMentionable": { "description": "Excluded from mentions autocomplete (notes in notebooks may be hidden but still mentionable)", "enum": [ false ], "type": "boolean" }, "note": { "$ref": "#/$defs/NotePiece", "description": "Passthrough note reference" }, "processedContent": { "description": "Processed content with wiki-links converted to markdown links", "type": "string" } }, "required": [ "note", "isHidden", "isMentionable", "processedContent", "checkboxToggle", "hasBacklinks", "goToEdit", "$NAME", "$UI", "$TILE_UI" ], "type": "object" } }