openwriter 0.6.11 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/skill/SKILL.md CHANGED
@@ -16,7 +16,7 @@ description: |
16
16
  Requires: OpenWriter MCP server configured. Browser UI at localhost:5050.
17
17
  metadata:
18
18
  author: travsteward
19
- version: "0.2.7"
19
+ version: "0.2.8"
20
20
  repository: https://github.com/travsteward/openwriter
21
21
  license: MIT
22
22
  ---
@@ -96,6 +96,8 @@ Every document has an immutable **docId** (8-char hex, e.g. `a1b2c3d4`) in its Y
96
96
  - Two documents can have the same title — the docId disambiguates
97
97
  - Filenames contain UUIDs unrelated to docIds — the first segment of a filename UUID looks like a docId but is not
98
98
 
99
+ **MCP params:** `metadata`, `changes`, `content` are objects — never stringify them.
100
+
99
101
  ## MCP Tools Reference (36 core + 21 publish platform)
100
102
 
101
103
  ### Document Operations
@@ -147,7 +149,7 @@ Every document has an immutable **docId** (8-char hex, e.g. `a1b2c3d4`) in its Y
147
149
  | `delete_container` | Delete a container from a workspace (doc files stay on disk) |
148
150
  | `tag_doc` | Add a tag to a document by docId (stored in doc frontmatter) |
149
151
  | `untag_doc` | Remove a tag from a document by docId |
150
- | `move_doc` | Add a doc to a workspace, or move it within the workspace (by docId) |
152
+ | `move_item` | Move or reorder a doc, container, or workspace (type: doc/container/workspace) |
151
153
  | `rename_item` | Rename a workspace, container, or document (type: workspace/container/document) |
152
154
 
153
155
  ### Agent Marks
@@ -228,7 +230,7 @@ create_document({
228
230
  - **`container`** (string) — container name within the workspace (e.g. "Chapters", "Notes", "References"). Auto-creates if not found. Requires `workspace`.
229
231
  - Both are optional — omit for standalone docs outside any workspace.
230
232
 
231
- This eliminates the need for separate `create_workspace`, `create_container`, and `move_doc` calls when building up a workspace.
233
+ This eliminates the need for separate `create_workspace`, `create_container`, and `move_item` calls when building up a workspace.
232
234
 
233
235
  ## Workflow
234
236
 
@@ -440,6 +442,16 @@ After creating a thread, use `read_pad` to get node IDs, then `insert_image` to
440
442
 
441
443
  All `insert_image` calls can run **in parallel** — no dependencies between them. Images appear with green pending decorations for user review.
442
444
 
445
+ ### Inserting Existing Images (from disk)
446
+
447
+ Copy to `~/.openwriter/profiles/Default/_images/`, then use TipTap JSON in `write_to_pad`:
448
+
449
+ ```
450
+ content: { "type": "image", "attrs": { "src": "/_images/my-image.png", "alt": "..." } }
451
+ ```
452
+
453
+ **Markdown `![alt](path)` does NOT work** — creates an empty paragraph. Always use TipTap JSON.
454
+
443
455
  ## Review Etiquette
444
456
 
445
457
  1. **Share the URL.** Always tell the user: http://localhost:5050