tag_note
Add one or more tags to one or more notes in a single operation. Returns a detailed report of successes and failures.
Instructions
Add one or more tags to one or more notes.
Both args accept a single string or a list. When either is a list, the cartesian product is applied (every tag on every note) in one call — preferred over looping.
Output: aggregated TAG_NOTE report with TOTAL_OPS / SUCCEEDED / FAILED, one row per (note, tag) pair (so the scalar case is a one-row report).
Tags must exist beforehand — use create_tag to add new ones. Missing tags are reported up front and nothing is applied. Per-op failures (e.g. invalid note ID or allowlist denial) are captured in the report; other ops still run.
Examples: - tag_note("abc...", "Work") - Tag one note with one tag - tag_note(["abc...", "def..."], "Work") - Tag two notes with one tag - tag_note("abc...", ["Work", "Urgent"]) - Add two tags to one note - tag_note(["abc...", "def..."], ["Work", "Urgent"]) - 2x2 = 4 ops
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_id | Yes | Note ID, or list of note IDs | |
| tag_name | Yes | Tag name, or list of tag names |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |