Annotation JSON Format
How to add text annotations to a project written in the JSON format (TOOL_MANUAL.md). Use it when you want other tools to read and write annotations too.
annotation (text annotation)
- A note attached to part of the text. It goes in the
annotationsarray of aproject - If you don't use annotations, you can leave out
annotations - Like a
node, the content of an annotation is an array ofsections
annotation fields
id: string. Must be unique within theprojectnodeId: theidof thenodethe annotation is attached tosectionId: theidof thesectionthe annotation is attached to. If omitted, thesectionwherequoteis found is used, but the annotation can't be imported ifquoteis found in more than onesection, so specifying it is recommendedquote: the text the annotation is attached to. Write it exactly as it is displayed on screen, without Markdown symbolstitle: string. The annotation's heading (optional)sections: array ofsection. The content of the annotationquoteContextBefore,quoteContextAfter: strings (optional). When the samesectioncontains thequotetext more than once, use the characters just before and after it to say which one to attach to
Connecting annotations
- To annotate text inside an annotation, put the parent annotation's
idinparentAnnotationIdinstead ofnodeId - To place child items under an annotation, put the annotation's
idin thatnode'sparentAnnotationIdinstead of itsparentId - A
sectionyou want the AI to answer becomes a target of "Copy an AI request" when itscontentis"AI回答待ち"("pending"or"TBD"also works)
Example with an annotation
{
"type": "annotator-qa-export",
"version": 3,
"projects": [
{
"title": "Annotation Sample",
"nodes": [
{
"id": "n-plan",
"topic": "Trip plan",
"parentId": null,
"sections": [
{
"id": "n-plan-s1",
"title": "",
"content": "On day 1, **leave early in the morning** and arrive by noon."
}
]
}
],
"annotations": [
{
"id": "a-start",
"nodeId": "n-plan",
"sectionId": "n-plan-s1",
"quote": "leave early in the morning",
"title": "What time should we leave?",
"sections": [
{
"id": "a-start-s1",
"title": "",
"content": "AI回答待ち"
}
]
}
]
}
]
}
Write quote as leave early in the morning, as it appears on screen, not as **leave early in the morning**.