Create-Note
INPUT CONTRACT
value(required): Literal value (string, number, boolean, array, object) or$variablereferencing contentout(required):$variablename for resulting Notename(optional): Stable name for the Note, enabling laterloadby name
REQUIREMENTS:
valuemust be provided (can be any type)outmust be a$variable
IMPORTANT: The name parameter registers a persistent name for later retrieval via load(target="my-name"). The out parameter (e.g., $my_note) is a temporary variable binding during plan execution — these are different concepts.
VALUE TYPES
Pass values directly as their native types — do NOT pre-serialize with json.dumps():
| Type | Example value |
|---|---|
| String | "some text data" |
| Number | 42 or 3.14 |
| Boolean | true or false |
| Array | ["apple", "banana", "cherry"] |
| Object | {"key": "value", "count": 5} |
| Variable | "$existing_var" |
EXAMPLES
{"type": "create-note", "value": "some data", "out": "$my_note"}
{"type": "create-note", "value": ["apple", "banana", "cherry"], "out": "$array_note"}
{"type": "create-note", "value": {"key": "value"}, "out": "$object_note"}
{"type": "create-note", "value": "$variable", "out": "$new_note"}
{"type": "create-note", "value": "important data", "name": "important-note", "out": "$my_note"}
OUTPUT
Returns success with the created Note's resource ID. The Note is immediately available via the $variable bound in out.
FAILURE SEMANTICS
- Missing
valueoroutparameter - Invalid
outvariable syntax
ANTI-PATTERNS
- Wrapping JSON in
json.dumps()before passing asvalue— pass native types directly - Confusing
name(persistent identifier) without(temporary binding)