@kolbo/mcp 1.71.0 → 1.71.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolbo/mcp",
3
- "version": "1.71.0",
3
+ "version": "1.71.2",
4
4
  "description": "Kolbo AI MCP Server - Generate images, videos, music, speech, and sound effects from Claude Code",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  # AUTO-GENERATED — do not edit
2
2
 
3
- This tree is mirrored from kolbo-code@9e4903a, the single source of truth.
3
+ This tree is mirrored from kolbo-code@c5b2132, the single source of truth.
4
4
  Canonical source: packages/opencode/skills/kolbo/
5
5
  Distribution: .github/workflows/sync-skill-to-plugin.yml
6
6
 
package/skill/SKILL.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- version: 0.8.2
2
+ version: 0.8.4
3
3
  name: kolbo
4
4
  description: |
5
5
  Generate, edit, analyze, and direct creative media through Kolbo AI: images,
@@ -58,8 +58,8 @@ For multi-scene / batch work this pairs with `generate_creative_director` (see b
58
58
  | If the user wants to… | Read first |
59
59
  |---|---|
60
60
  | Direct, develop, audit, or continue a **film / episode / connected scene / complex performance** with continuity, acting, dialogue, music, blocking, or physics | `references/workflows/filmmaking.md` |
61
- | Generate a **Seedance 2.5** video | `references/models/seedance25.md`; also load `references/workflows/filmmaking.md` for narrative, performance, or cross-shot continuity |
62
- | Generate a **Seedance 2 / 2.0** video | `references/models/seedance.md` |
61
+ | Generate a **Seedance 2.5** video | `references/models/seedance25.md` + Locked Intro in `references/models/seedance.md`. For narrative/continuity also load `references/workflows/filmmaking.md` but compile the prompt as Locked Intro, NOT the SCENE CONTEXT / OPTICS / ACTION pack |
62
+ | Generate a **Seedance 2 / 2.0** video **or Elements** (`generate_elements`) | `references/models/seedance.md` — same Locked Intro. Elements is NOT a different prompt language |
63
63
  | Generate a **GPT Image 2** image | `references/models/gpt-image.md` |
64
64
  | Generate a **Nano Banana / Gemini** image | `references/models/nano-banana.md` |
65
65
  | Generate a **Veo 3 / 3.1** video | `references/models/veo.md` |
@@ -94,7 +94,7 @@ Each `references/models/*.md` mirrors the matching skill prompt in `kolbo-api/sr
94
94
  | `generate_video` | Text-to-video. Does **not** support Visual DNA — use `generate_elements` for character-consistent video. |
95
95
  | `generate_video_from_image` | Animate a still. Prompt describes motion, not subject. |
96
96
  | `generate_video_from_video` | Restyle/transform an existing video. Keeps original motion. |
97
- | `generate_elements` | Reference-driven video. **Primary route for DNA → video.** |
97
+ | `generate_elements` | Reference-driven video. **Primary route for DNA → video.** Prompt = Seedance Locked Intro (`Total` + `[GLOBAL LOOK]` / `[CAST]` / `[LOCATION]` + `SHOT N`). Every DNA in `visual_dna_ids` must also be `@Name` in that prompt. |
98
98
  | `generate_first_last_frame` | Keyframe interpolation between two frames. |
99
99
  | `generate_lipsync` | Lipsync audio to an image or video face. |
100
100
  | `generate_music` | Music generation (Suno + variants). |
@@ -114,7 +114,8 @@ Each `references/models/*.md` mirrors the matching skill prompt in `kolbo-api/sr
114
114
  | `search_stock_media` / `get_stock_sources` / `get_stock_categories` / `get_stock_collections` / `get_stock_asset` / `analyze_script_for_stock` / `import_stock_asset` | Stock library (free, no credits) — EXISTING photos / videos / 3D / SFX / music. For stock **music** use `search_stock_media` with `mediaType: "music"` (semantic vibe query, e.g. "uplifting corporate background") → `get_stock_asset` for downloads. The older `*_music_library` tools are deprecated adapters over this — prefer the stock tools, except for the licensed-catalog tools in the next row. |
115
115
  | `search_music_library` / `browse_music_library` / `get_music_library_facets` / `get_music_track_audio` / `get_music_track_lyrics` / `get_music_track_related` / `analyze_script_for_music` / `acquire_clean_music_track` / `import_music_track_to_library` | **SYNCI licensed music** — a commercially licensed catalog, not free stock. Discovery and previews are free but **watermarked**; there is no unwatermarked URL until you pay. `acquire_clean_music_track` (or `import_music_track_to_library`, which also copies it to the media library) **CHARGES CREDITS** for the clean master — confirm with the user first, and pass a stable `requestId` so a retry doesn't buy it twice. `analyze_script_for_music` turns a script into search terms for `search_music_library`. Use this family when the user needs music cleared for commercial use; use `search_stock_media` with `mediaType: "music"` when free stock will do. |
116
116
  | `list_projects` / `move_session` | Projects: resolve a project NAME → the `project_id` you pass on generation/upload/doc calls; `move_session` relocates a whole session + its media when work landed in the wrong project. See "Projects — Where Work Lands" below. |
117
- | `create_project` / `update_project` / `archive_project` / `unarchive_project` / `list_sessions` | Project lifecycle + session inventory (deletion stays in-app). Create a project when the user starts new work, then pass its id on EVERY call. |
117
+ | `create_project` / `update_project` / `archive_project` / `unarchive_project` / `list_sessions` / `rename_session` / `delete_session` / `restore_session` | Project lifecycle + session inventory. `list_sessions` returns `project_id` + `types[]` on every row. Soft-delete leftover empty sessions after a move; `restore_session` undoes trash. Create a project when the user starts new work, then pass its id on EVERY call. |
118
+ | `bulk_move_sessions` / `list_session_generations` / `move_generations_to_session` / `split_session` / `undo_session_organization` | Reorganize many sessions or generations. `list_session_generations` is an inventory (not a live generation card). |
118
119
  | `add_project_context` / `list_project_context` / `delete_project_context` / `get_project_profile` / `regenerate_project_profile` | Project knowledge base (RAG): feed scripts/URLs/notes; `get_project_profile` = the living brief — read it to ground work in the project |
119
120
  | `create_moodboard` / `update_moodboard` / `delete_moodboard` | Moodboards from image URLs → AI master style prompt → pass `moodboard_id` to generation tools |
120
121
  | `clone_voice` / `import_elevenlabs_voice` / `delete_voice` | Custom voices (clone CHARGES CREDITS — confirm first; new voices show in `list_voices`) |
@@ -123,6 +124,25 @@ Each `references/models/*.md` mirrors the matching skill prompt in `kolbo-api/sr
123
124
  | `chat_send_message` / `chat_list_conversations` / `chat_get_messages` | Kolbo chat with optional `media_urls` (up to 10 per call) |
124
125
  | `publish_html_artifact` | Publish HTML / SVG / Mermaid to `sites.kolbo.ai`. Server dedupes by content hash. Strict CSP. |
125
126
 
127
+ ## ⚠️ Visual DNA `@Name` in the prompt (HARD RULE — always on)
128
+
129
+ Passing `visual_dna_ids` is **not enough**. For every DNA in that array you MUST also write `@ExactStoredName` in the prompt text (the `name` from `list_visual_dnas` / `create_visual_dna`). The engine binds identity by parsing `@tags`. No `@tag` → the DNA is wasted.
130
+
131
+ - Right: `visual_dna_ids: ["vdna_…"]` + prompt `@Zohar walks into frame`
132
+ - Wrong: `Zohar's`, `Zohar`, `the left man`, `the man on the LEFT`, `Visual DNA anchors: the man on the LEFT…` — none of these bind
133
+ - Never invent a role label or possessive as a substitute for `@Name`
134
+ - Same rule for moodboards: `#ExactBoardName`
135
+
136
+ Resolve names with `list_visual_dnas` first. Full binding rules: `references/workflows/visual-dna.md`.
137
+
138
+ ## ⚠️ Seedance / Elements prompt contract (HARD RULE)
139
+
140
+ `generate_elements`, Seedance 2, and Seedance 2.5 share **one** compile shape — the Locked Intro in `references/models/seedance.md`:
141
+
142
+ `Total: Xs / N shots / AR` → `[GLOBAL LOOK – LOCKED, APPLIES TO EVERY SHOT]` → `[CAST – IDENTICAL IN EVERY SHOT]` (each person is `@DNAName`) → `[LOCATION]` → `SHOT N — 0:00–0:02 — …`
143
+
144
+ Do **not** default Elements to `SCENE CONTEXT` / `OPTICS` / `ACTION` / `ACTIVE REFERENCES` department packs (those live in filmmaking audit/contracts for other models). Do not load `seedance-2-prompting` SCENE CONTEXT as the Elements format.
145
+
126
146
  ## ⚠️ If the User Names a Tool, USE THAT TOOL (HARD RULE)
127
147
 
128
148
  A user-named tool — in any language — overrides every other rule. Recognized aliases:
@@ -172,9 +192,9 @@ Model types for `list_models`: `text_to_img`, `image_editing`, `text_to_video`,
172
192
 
173
193
  Everything in Kolbo — sessions, generations, media, docs — lives inside a PROJECT. Getting this wrong is the #1 user complaint ("my work went to the wrong project").
174
194
 
175
- 1. **User names a project** ("in my Acme project", "for the film") → call `list_projects` ONCE to resolve the name to an ObjectId, then pass that id as `project_id` on **EVERY** subsequent `generate_*` / `upload_media` / `create_doc` / `chat_send_message` call in the conversation. It is **per-call, NOT sticky**any call that omits it silently lands in the default "API Generations" bucket (`is_default: true`). Accounts often hold hundreds of projects, so pass `list_projects({ search: "acme" })` rather than listing everything; the list is paginated (50/page) and hides archived projects unless you pass `include_archived: true`.
176
- 2. **No project mentioned** → omit `project_id`; the default bucket is correct. Don't ask unless intent is ambiguous.
177
- 3. **Work landed in the wrong project? MOVE it, never regenerate**: `move_session` relocates a whole session + all its media (works for any session type — the `session_id` from generation responses, chats, transcriptions); `move_media` / `bulk_move_media` / `move_folder_contents` relocate individual media items.
195
+ 1. **User names a project** ("in my Acme project", "for the film") → call `list_projects` ONCE to resolve the name to an ObjectId, then pass that **same** id as `project_id` on **EVERY** subsequent `generate_*` / `upload_media` / `create_doc` / `chat_send_message` call in **this conversation**. There is no server-side sticky store omitting it on any later call silently lands in the default "API Generations" bucket (`is_default: true`). Once resolved, treat that id as required for the rest of the conversation. Accounts often hold hundreds of projects, so pass `list_projects({ search: "acme" })` rather than listing everything; the list is paginated (50/page) and hides archived projects unless you pass `include_archived: true`.
196
+ 2. **No project mentioned** → omit `project_id`; the default bucket is correct. Don't ask unless intent is ambiguous. If `list_sessions` already returned a `project_id` for the work you are continuing, keep passing that id.
197
+ 3. **Work landed in the wrong project? MOVE it, never regenerate**: `move_session` relocates a whole session + all its media (works for any session type — the `session_id` from generation responses, chats, transcriptions); `move_media` / `bulk_move_media` / `move_folder_contents` relocate individual media items. Empty leftover sessions after a move: `delete_session` (soft-delete; `restore_session` undoes it). `rename_session` only changes the sidebar title.
178
198
 
179
199
 
180
200
  ## Cost Awareness — Quick Rules
package/skill/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.2
1
+ 0.8.4
@@ -9,13 +9,16 @@ Load this file when the user wants a **Seedance 2 / Seedance 2.0** (ByteDance) v
9
9
 
10
10
  **Kolbo MCP routing:** Seedance is a video model — call `generate_video` (text-to-video) or `generate_elements` (when video references / Visual DNA / first-last frames are involved). Run `list_models({ type: "text_to_video" })` and pick a Seedance variant by name.
11
11
 
12
- ## Universal Rules (apply to EVERY Seedance prompt)
12
+ **Elements uses this same file.** `generate_elements` is not a second prompt language. Do not write `SCENE CONTEXT` / `OPTICS` / `ACTION` department packs for Elements or Seedance — those are filmmaking audit contracts, not the generation compile shape.
13
13
 
14
+ ## Universal Rules (apply to EVERY Seedance / Elements prompt)
15
+
16
+ - **Visual DNA names are immutable anchors:** when `visual_dna_ids` is passed, every DNA MUST appear in the prompt as the exact literal `@DNA_name` (CAST + every shot it is in). Never "Zohar's", "the left man", "the man on the LEFT", a nickname, or a Visual DNA anchors paragraph without `@tags`.
14
17
  - **First line ALWAYS declares shot structure**: total duration, shot count, aspect ratio. Example: `Total: 15s / 6 shots / 16:9`. Put it at the BOTTOM of the prompt too. For connected narrative sequences the proven phrasing is `N connected cinematic shots, 15 seconds total, 16:9, Multishot ON` — use it and keep `Multishot ON` for any multi-shot story.
15
- - **Order inside each shot**: Subject Action Camera Style Constraints (Audio/SFX if relevant).
16
- - **Prompt length**: aim for ~120–280 words TOTAL across all shots combined (not per shot). Shorter than ~120 words = random output. Longer risks the 8000-char cap below and makes the model forget the opening. For 6-shot prompts, keep each shot 1–2 tight sentences.
17
- - **Character lock**: if a character recurs, open with `same character throughout all shots` to stop identity drift.
18
- - **Max 3 shots per single-shot prompt; max 6 shots in a multi-shot montage.** More causes drift.
18
+ - **Then the Locked Intro** `[GLOBAL LOOK]` / `[CAST]` / `[LOCATION]` before any shot. A one-liner `same character throughout` is not a character lock.
19
+ - **Order inside each shot**: Subject Action Camera Constraints (Audio/SFX if relevant). Do NOT restack GLOBAL LOOK style inside the shot.
20
+ - **Prompt length**: simple single-idea pieces ~120–280 words. Locked-intro cinematic typically 400–900 words. Shorter than ~120 words = random output. The 8000-char cap below always wins.
21
+ - **Shot count is user-directed.** If the user asks for N shots, deliver exactly N in one prompt unless they ask to split.
19
22
  - **Always describe at least one camera movement per shot.**
20
23
  - **Tell Seedance what the camera is NOT doing** (e.g. `no cuts, no zoom, natural head movement`) — this is what locks POV.
21
24
  - **Final prompt is always English**, wrapped in a copy-ready code block. Detect intent in any language and reply in the user's language, but the prompt itself is English.
@@ -26,6 +29,32 @@ Load this file when the user wants a **Seedance 2 / Seedance 2.0** (ByteDance) v
26
29
  - **Never** split into multiple prompts, multiple code blocks, or "part 1 / part 2" to evade the cap.
27
30
  - Before outputting, internally count the characters of the final prompt as a single string. If > 8000, rewrite tighter and re-count. Repeat until ≤ 8000. Only then show the user.
28
31
 
32
+ ## Locked Intro (DEFAULT for any multi-shot cinematic — including Elements)
33
+
34
+ After the Total line, every multi-shot prompt — and any piece with recurring people or a recurring place — opens with three locked blocks. Skip only for: true single-shot POV/orb, 3×3 grid-panel mode, or video-edit tasks.
35
+
36
+ ```
37
+ Total: Xs / N shots / AR
38
+ N connected cinematic shots, Xs total, AR, Multishot ON
39
+
40
+ [GLOBAL LOOK – LOCKED, APPLIES TO EVERY SHOT]
41
+ <body>, <lens family>, <film stock>, <aspect> spherical, <stop>. <DoF, grain, grade as law>. <movement grammar>. <performance + audio law>.
42
+
43
+ [CAST – IDENTICAL IN EVERY SHOT]
44
+ @Exact_DNA_name: age, build, hair, face, wardrobe, signature details.
45
+ PROP: recurring object.
46
+
47
+ [LOCATION]
48
+ Place in materials + light + color field. Blocking. Background LIFE.
49
+
50
+ SHOT 1 — 0:00–0:02 — Medium / camera position
51
+ (physical verbs, timed acting, quoted dialogue)
52
+
53
+ Total: Xs / N shots / AR
54
+ ```
55
+
56
+ When a Visual DNA exists, its exact `@DNA_name` IS the cast name — never place a nickname before it or substitute one later. For plain image refs use `@ImageN`.
57
+
29
58
  ## The 5 Formats
30
59
 
31
60
  ### 1. Transformations (highest-performing format)
@@ -62,16 +91,13 @@ Load this file when the user wants a **Seedance 2 / Seedance 2.0** (ByteDance) v
62
91
 
63
92
  ### 6. Reference-Anchored Cinematic Sequence (multi-character / named references — highest-fidelity format)
64
93
 
65
- Use whenever the user gives named characters or multiple reference images (`@Image1`, `@Image2`, …) — a tactical unit clearing a bunker, a duel between two referenced characters, a war scene. **This is always an Elements-mode prompt** (route the card to `elements`). Structure:
94
+ Use whenever the user gives named characters, Visual DNAs, or multiple reference images (`@Image1`, `@Image2`, …). **This is always an Elements-mode prompt** (`generate_elements`). Structure:
66
95
 
67
- 1. **Labeled scene header FIRST** (grounds the scene before any shot):
68
- - `Time of day:`hour + light quality + atmosphere (dust, haze, heavy silence before action).
69
- - `Location:` — the environment in concrete physical detail (materials, wear, light direction, high-contrast blown-out entrance, etc.).
70
- - `Characters:`ONE line per person: `Name @ImageN wardrobe, position in frame, what they carry`. End with "All must match their character references exactly."
71
- 2. **REFERENCE CONSISTENCY block** — map every reference and pin what must NOT change: `Reference Image 1 is <X>. Preserve exact face, hair, anatomy, wardrobe, colors, props.` Add per-character energy/aura color rules, and any already-established story state (e.g. "the gem is already shattered — no intact gem, no red glow"). End with "Do not redesign, morph, recolor, or swap either character, their clothing, anatomy, weapons, or the environment."
72
- 3. **Shots** — either titled (`Shot 1 — Medium Wide / Tactical Positioning`) or timecoded (`SHOT 1 — 0:00–0:03`); timecodes must sum to the total duration. Under each shot use **Camera → Action → Audio** in that order.
73
- 4. **Continuity** — to chain a series, open with `Begin as a seamless continuation from <the exact last beat of the previous video>.`
74
- 5. Close with whichever **Power Blocks** below actually apply (this format usually warrants all three; a simpler scene may need only AUDIO).
96
+ 1. **Locked Intro FIRST** (GLOBAL LOOK / CAST / LOCATION). CAST is one line per person: `@Exact_DNA_name` or `Name @ImageN — wardrobe, position, what they carry`. End CAST with "All must match their character references exactly." Never "the man on the LEFT" without an `@tag`.
97
+ 2. **REFERENCE CONSISTENCY block**map every reference and pin what must NOT change: `@Zohar` / `Reference Image 1 is <X>. Preserve exact face, hair, anatomy, wardrobe, colors, props.`
98
+ 3. **Shots** — timecoded `SHOT N 0:00–0:03`. Re-use the same `@DNA_name` in every shot that person appears. Camera Action Audio.
99
+ 4. **Continuity**ONLY when the user will attach the previous video / last frame as an input. Otherwise the prompt is STANDALONE.
100
+ 5. Close with whichever **Power Blocks** below actually apply.
75
101
 
76
102
  ## Power Blocks (CONDITIONAL — add ONLY the ones the shot actually needs; never pad a simple prompt)
77
103
 
@@ -93,7 +119,7 @@ These elevate rich cinematic / reference-anchored sequences. For a short, tight,
93
119
 
94
120
  ## Universal Craft Layer (apply on top of any format above)
95
121
 
96
- > This is the universal film-direction layer that lifts every prompt above the boilerplate. **Deep-dive reference:** `~/.kolbo/skills/seedance-2-prompting/SKILL.md` (Craft Editionfull block structure, every optical technique, and the pre-flight checklist).
122
+ > Craft layer for observables (FOV degrees, km/h, Kelvin). Do **not** switch the compile shape to that skill's SCENE CONTEXT / OPTICS / ACTION packLocked Intro above is the only default for Seedance and Elements.
97
123
 
98
124
  ### Core principle
99
125
 
@@ -226,4 +252,4 @@ Seedance 2 lives in the **Video** category. Route the prompt card by the INPUTS:
226
252
 
227
253
  ## Seedance + Visual DNA / References
228
254
 
229
- When a character must stay consistent, pair Seedance with Visual DNA via `generate_elements` (NOT `generate_video` — text-to-video silently drops `visual_dna_ids`). Tag the DNA inside the prompt with `@<dna-name>`see `workflows/visual-dna.md`. For grid/storyboard inputs, the source frame is `@image1`.
255
+ When a character must stay consistent, pair Seedance with Visual DNA via `generate_elements` (NOT `generate_video` — text-to-video silently drops `visual_dna_ids`). Use the exact literal `@DNA_name` as the character name in CAST and re-anchor every shot where it appears never a nickname, alias, possessive (`Zohar's`), or spatial label (`the left man`). See `workflows/visual-dna.md`. For grid/storyboard inputs, the source frame is `@image1`.
@@ -9,6 +9,8 @@ Load this file when the user wants a **Seedance 2.5** video (they said "2.5" / "
9
9
 
10
10
  **Kolbo MCP routing:** `generate_video` or `generate_elements` (refs / Visual DNA / first-last). Run `list_models({ type: "text_to_video" })` and pick the Seedance 2.5 variant by name.
11
11
 
12
+ **Audio:** Seedance 2.5 still emits real synced audio. `list_models` may show `sound_generation_type: none` because there is no in-app toggle (`sound_baked_in: true`). Do not tell the user the model is silent.
13
+
12
14
  ## What's NEW in 2.5 (verified — never hedge)
13
15
 
14
16
  - **Duration 4–30 seconds**, whole seconds. 30s IS supported.
@@ -62,4 +64,4 @@ Skip CORE STYLE / SUBJECT / ENVIRONMENT — the three locked blocks already own
62
64
 
63
65
  ## Where to run in Kolbo
64
66
 
65
- Same routing as Seedance 2 (`first_last_frame` / `elements` / `image_to_video` / `text_to_video`). Pair Visual DNA with `generate_elements` and tag `@<dna-name>` inside the prompt.
67
+ Same routing as Seedance 2 (`first_last_frame` / `elements` / `image_to_video` / `text_to_video`). Pair Visual DNA with `generate_elements` and write the exact `@DNA_name` in CAST and every shot — never "Zohar's" / "the left man" / an untagged "Visual DNA anchors" paragraph. Elements uses this same Locked Intro; do not compile SCENE CONTEXT / OPTICS / ACTION packs.
@@ -93,27 +93,19 @@ Before writing, establish:
93
93
 
94
94
  Prompt-length limits apply to the entire compiled generation prompt as one string, including whitespace, headers, timecodes, dialogue, audio, and locks. Count after compilation. For the current Seedance 2.5 adapter snapshot, the hard ceiling is 30,000 characters; never borrow that number for another model.
95
95
 
96
- For a serious controlled shot, prefer this logical order, omitting irrelevant blocks:
96
+ **Seedance 2 / Seedance 2.5 / `generate_elements` — Locked Intro is the only compile shape.** Read `references/models/seedance.md` (and `seedance25.md` for 2.5 caps). Do not emit the SCENE CONTEXT / OPTICS / ACTION department pack below as the generation prompt. Every Visual DNA in play must be `@ExactName` in CAST and in each shot never "the left man" or a possessive.
97
97
 
98
98
  ```text
99
- SCENE CONTEXT
100
- ACTIVE REFERENCES
101
- LOCATION MAP
102
- FIRST FRAME AND SPATIAL BLOCKING
103
- FORMAT MODE
104
- OPTICS
105
- CAMERA
106
- ACTION TIMING / SHOTS
107
- PHYSICS
108
- LIGHTING
109
- ACTING TASKS
110
- DIALOGUE
111
- AUDIO / MUSIC
112
- STYLE
113
- POSITIVE LOCKS
99
+ Total: Xs / N shots / AR
100
+ [GLOBAL LOOK – LOCKED, APPLIES TO EVERY SHOT]
101
+ [CAST – IDENTICAL IN EVERY SHOT] ← @DNAName per person
102
+ [LOCATION]
103
+ SHOT N — 0:00–0:02 — …
114
104
  ```
115
105
 
116
- For anchored or exploratory work, collapse compatible blocks and protect only non-negotiables. Never manufacture a rigid skeleton when a looser model-native prompt is more likely to succeed.
106
+ The SCENE CONTEXT pack in `prompt-contracts.md` is an **audit / pre-compile checklist** for non-Seedance models and Workbench diagnosis not the default Elements prompt.
107
+
108
+ For anchored or exploratory work on other models, collapse compatible blocks and protect only non-negotiables. Never manufacture a rigid skeleton when a looser model-native prompt is more likely to succeed.
117
109
 
118
110
  ## Preserve continuity
119
111
 
@@ -81,7 +81,8 @@ Whenever a generation call passes `visual_dna_ids` (even just one), the prompt M
81
81
  **Use the actual stored name, programmatically.** When you call `list_visual_dnas` (or `create_visual_dna`), read the `name` field off the response and use that exact string after the `@`. Do NOT:
82
82
 
83
83
  - Translate the name into another language ("אסתר" / "esther" / "אסתי" — pick whichever string is in `name` and use ONLY that one).
84
- - Invent a friendlier alias ("the model", "המודל", "her").
84
+ - Invent a friendlier alias ("the model", "המודל", "her", "Zohar's", "the left man", "the man on the LEFT").
85
+ - Write a "Visual DNA anchors:" prose block that describes position/wardrobe but never writes `@ExactName`.
85
86
  - Write the character's name in plain text without the `@` prefix.
86
87
  - Drop the `@name` when only one DNA is passed — the engine still needs the binding so it knows the DNA is the *subject* and not a passive style.
87
88
 
package/src/apps/html.js CHANGED
@@ -109,11 +109,63 @@ function monogram(name) {
109
109
  function structured(res) {
110
110
  if (!res) return null;
111
111
  if (res.structuredContent) return res.structuredContent;
112
+ if (res.result) return structured(res.result);
112
113
  try {
113
114
  var t = (res.content || []).filter(function (c) { return c.type === 'text'; })[0];
114
115
  return t ? JSON.parse(t.text) : null;
115
116
  } catch (e) { return null; }
116
117
  }
118
+ // Hosts that do not advertise MCP Apps (Kolbo Code) get plain JSON
119
+ // ({ sessions }, { generations }, { projects }, …) with no items[].
120
+ // Normalize those shapes so list.html and the generation fallback can
121
+ // leave Loading on first paint without waiting for a newer host.
122
+ function listPayload(sc) {
123
+ if (!sc || typeof sc !== 'object') return null;
124
+ if (sc.widget && sc.widget !== 'list') return null;
125
+ if (sc.phase || sc.generation_id || sc.generation_ids) return null;
126
+ if (Array.isArray(sc.items)) {
127
+ return {
128
+ widget: 'list',
129
+ title: sc.title || 'List',
130
+ items: sc.items,
131
+ total: sc.total != null ? sc.total : sc.items.length
132
+ };
133
+ }
134
+ var key = sc.sessions ? 'sessions' : sc.projects ? 'projects' : sc.generations ? 'generations'
135
+ : sc.agents ? 'agents' : sc.docs ? 'docs' : sc.folders ? 'folders' : sc.sources ? 'sources' : '';
136
+ var rows = key ? sc[key] : null;
137
+ if (!Array.isArray(rows)) return null;
138
+ var titles = {
139
+ sessions: 'Sessions', projects: 'Projects', generations: 'Generations',
140
+ agents: 'Agents', docs: 'Docs', folders: 'Folders', sources: 'Knowledge Base'
141
+ };
142
+ return {
143
+ widget: 'list',
144
+ title: sc.title || titles[key] || 'List',
145
+ items: rows.map(function (row) {
146
+ var types = Array.isArray(row.types)
147
+ ? row.types.filter(function (x) { return typeof x === 'string'; })
148
+ : String(row.type || '').split('|').filter(Boolean);
149
+ var id = row.session_id || row.id || row.generation_id || row.file_key;
150
+ var name = row.name || row.title || (row.prompt ? String(row.prompt).slice(0, 80) : '') || types[0] || 'Item';
151
+ return {
152
+ id: id,
153
+ title: name,
154
+ subtitle: [
155
+ types.join(', ') || row.role || row.status || row.description,
156
+ id,
157
+ row.project_id ? 'project ' + row.project_id : null,
158
+ row.updated_at ? String(row.updated_at).slice(0, 10) : null,
159
+ row.output_count ? row.output_count + ' outputs' : null
160
+ ].filter(Boolean).join(' · '),
161
+ badge: types[0] || row.role || row.status,
162
+ open_url: row.open_url || row.share_url || null,
163
+ meta: row.item_count != null ? String(row.item_count) : undefined
164
+ };
165
+ }),
166
+ total: sc.total != null ? sc.total : (sc.count != null ? sc.count : rows.length)
167
+ };
168
+ }
117
169
  </script>
118
170
  <script>${script}</script>
119
171
  </body>
package/src/apps/index.js CHANGED
@@ -166,6 +166,13 @@ function uiResult(uri, text, structured) {
166
166
  };
167
167
  }
168
168
 
169
+ /** List tools always ship structuredContent — Kolbo Code does not advertise
170
+ * MCP Apps, so gating on appsEnabled() left list.html / the generation
171
+ * fallback stuck on Loading with only `{ sessions }` text. */
172
+ function listResult(text, structured) {
173
+ return uiResult(UI.list, text, structured);
174
+ }
175
+
169
176
  /* ------------------------------------------------------------------ */
170
177
  /* Model icon lookup (name/identifier → absolute avatar URL) */
171
178
  /* ------------------------------------------------------------------ */
@@ -494,6 +501,7 @@ module.exports = {
494
501
  attachToolWidgetMeta,
495
502
  uiMeta,
496
503
  uiResult,
504
+ listResult,
497
505
  appsEnabled,
498
506
  modelIcon,
499
507
  modelInfo,
@@ -889,6 +889,8 @@ function completedFromPlain(sc) {
889
889
  /* ---------- wire host events ---------- */
890
890
  window.kolbo.onToolResult(function (result) {
891
891
  var sc = result.structuredContent || structured(result);
892
+ var list = listPayload(sc);
893
+ if (list) return renderList(list);
892
894
  if (sc && (sc.phase || sc.widget)) return boot(sc);
893
895
  var recovered = completedFromPlain(sc);
894
896
  if (recovered) return boot(recovered);
@@ -907,7 +909,10 @@ window.kolbo.ready(function (ctx) {
907
909
  var info = ctx && ctx.toolInfo;
908
910
  if (!state && info) {
909
911
  originTool = (info.tool && info.tool.name) || originTool;
910
- if (info.result && info.result.structuredContent) return boot(info.result.structuredContent);
912
+ var raw = info.result && (info.result.structuredContent || structured(info.result));
913
+ var list = listPayload(raw);
914
+ if (list) return renderList(list);
915
+ if (raw) return boot(raw);
911
916
  bootPre(originTool, null);
912
917
  }
913
918
  });
@@ -43,17 +43,30 @@ el('kolbo-link').onclick = function (e) { e.preventDefault(); window.kolbo.openL
43
43
  var state = null;
44
44
 
45
45
  function boot(sc) {
46
- if (!sc || !sc.items) return;
47
- state = sc;
48
- el('title').textContent = sc.title || 'List';
49
- var total = sc.total != null ? sc.total : sc.items.length;
46
+ var list = listPayload(sc);
47
+ if (!list) return false;
48
+ state = list;
49
+ el('title').textContent = list.title || 'List';
50
+ var total = list.total != null ? list.total : list.items.length;
50
51
  el('count-chip').style.display = '';
51
52
  el('count-chip').textContent = total + (total === 1 ? ' item' : ' items');
52
- if (!sc.items.length) { el('stage').innerHTML = '<div class="k-empty">Nothing here yet</div>'; return; }
53
- el('stage').innerHTML = sc.items.slice(0, 40).map(itemHTML).join('');
53
+ if (!list.items.length) {
54
+ el('stage').classList.add('k-empty');
55
+ el('stage').innerHTML = 'Nothing here yet';
56
+ window.kolbo.notifySize();
57
+ return true;
58
+ }
59
+ el('stage').innerHTML = list.items.slice(0, 40).map(itemHTML).join('');
54
60
  el('stage').classList.remove('k-empty');
55
61
  wire();
56
62
  window.kolbo.notifySize();
63
+ return true;
64
+ }
65
+
66
+ function apply(result) {
67
+ if (!result) return false;
68
+ var inner = result.result || result;
69
+ return boot(inner.structuredContent || structured(inner) || inner);
57
70
  }
58
71
 
59
72
  function itemHTML(item, i) {
@@ -86,11 +99,11 @@ function wire() {
86
99
  }
87
100
 
88
101
  window.kolbo.onToolResult(function (result) {
89
- var sc = result.structuredContent || structured(result);
90
- if (sc && sc.items) return boot(sc);
91
- var card = document.querySelector('.k-card');
92
- if (card) card.style.display = 'none';
93
- window.kolbo.notifySize();
102
+ apply(result);
103
+ });
104
+ window.kolbo.ready(function (ctx) {
105
+ var info = ctx && ctx.toolInfo;
106
+ if (info && info.result) apply(info.result);
94
107
  });
95
108
  `;
96
109
 
@@ -4,10 +4,9 @@
4
4
  * new OPTIONAL args only. Full rules: ../index.js top-of-file and CLAUDE.md. */
5
5
 
6
6
  const { z } = require('zod');
7
- const { UI, uiResult, appsEnabled } = require('../apps');
7
+ const { listResult } = require('../apps');
8
8
 
9
- function registerAgentTools(server, client, options = {}) {
10
- const ui = () => appsEnabled(server, options);
9
+ function registerAgentTools(server, client) {
11
10
  // ─── list_agents ───────────────────────────────────────────
12
11
  server.tool(
13
12
  'list_agents',
@@ -22,22 +21,18 @@ function registerAgentTools(server, client, options = {}) {
22
21
  count: result.count || agents.length
23
22
  }, null, 2);
24
23
 
25
- if (ui()) {
26
- return uiResult(UI.list, text, {
27
- widget: 'list',
28
- title: 'Your Agents',
29
- items: agents.map(a => ({
30
- id: a.id,
31
- title: (a.emoji ? a.emoji + ' ' : '') + a.name,
32
- subtitle: a.description,
33
- badge: a.is_global ? 'preset' : null,
34
- use_hint: 'Use my "{TITLE}" agent (agent_id: {ID}) for this conversation.'
35
- })),
36
- total: agents.length
37
- });
38
- }
39
-
40
- return { content: [{ type: 'text', text }] };
24
+ return listResult(text, {
25
+ widget: 'list',
26
+ title: 'Your Agents',
27
+ items: agents.map(a => ({
28
+ id: a.id,
29
+ title: (a.emoji ? a.emoji + ' ' : '') + a.name,
30
+ subtitle: a.description,
31
+ badge: a.is_global ? 'preset' : null,
32
+ use_hint: 'Use my "{TITLE}" agent (agent_id: {ID}) for this conversation.'
33
+ })),
34
+ total: agents.length
35
+ });
41
36
  }
42
37
  );
43
38
 
package/src/tools/docs.js CHANGED
@@ -5,12 +5,11 @@
5
5
 
6
6
  const { z } = require('zod');
7
7
  const { projectIdField } = require('./_shared');
8
- const { UI, uiResult, appsEnabled } = require('../apps');
8
+ const { listResult } = require('../apps');
9
9
 
10
10
  const CONTENT_GUIDE = 'HTML body content. Use clean semantic HTML the in-app editor understands: <h1>-<h3>, <p>, <ul>/<ol>/<li>, <table>, <blockquote>, <strong>/<em>, <a>. No <script>/<style>/<iframe> (stripped server-side). Write the FULL document yourself — this is where you author the doc.';
11
11
 
12
- function registerDocTools(server, client, options = {}) {
13
- const ui = () => appsEnabled(server, options);
12
+ function registerDocTools(server, client) {
14
13
  // ─── create_doc ────────────────────────────────────────────
15
14
  server.tool(
16
15
  'create_doc',
@@ -55,21 +54,17 @@ function registerDocTools(server, client, options = {}) {
55
54
  const docs = result.docs || [];
56
55
  const text = JSON.stringify({ docs, pagination: result.pagination || null }, null, 2);
57
56
 
58
- if (ui()) {
59
- return uiResult(UI.list, text, {
60
- widget: 'list',
61
- title: 'Your AI Docs',
62
- items: docs.map(d => ({
63
- id: d.id,
64
- title: d.title,
65
- subtitle: (d.updated_at ? String(d.updated_at).slice(0, 10) : '') + (d.is_shared ? ' · shared' : ''),
66
- open_url: d.share_url || null
67
- })),
68
- total: docs.length
69
- });
70
- }
71
-
72
- return { content: [{ type: 'text', text }] };
57
+ return listResult(text, {
58
+ widget: 'list',
59
+ title: 'Your AI Docs',
60
+ items: docs.map(d => ({
61
+ id: d.id,
62
+ title: d.title,
63
+ subtitle: (d.updated_at ? String(d.updated_at).slice(0, 10) : '') + (d.is_shared ? ' · shared' : ''),
64
+ open_url: d.share_url || null
65
+ })),
66
+ total: docs.length
67
+ });
73
68
  }
74
69
  );
75
70
 
@@ -6,7 +6,7 @@
6
6
  const { z } = require('zod');
7
7
  const FormData = require('form-data');
8
8
  const { resolveToBuffer, DEFAULT_MAX_FILE_MB, compactList } = require('./_shared');
9
- const { UI, uiResult, appsEnabled } = require('../apps');
9
+ const { UI, uiResult, listResult, appsEnabled } = require('../apps');
10
10
 
11
11
  // How many tiles the media grid renders. A rendering limit only — the text
12
12
  // payload always carries the full page, and `total` reports the real library
@@ -343,22 +343,18 @@ function registerMediaTools(server, client, options = {}) {
343
343
  const folders = result.folders || [];
344
344
  const text = JSON.stringify({ folders, count: result.count || 0 }, null, 2);
345
345
 
346
- if (ui()) {
347
- return uiResult(UI.list, text, {
348
- widget: 'list',
349
- title: 'Media Folders',
350
- items: folders.map(f => ({
351
- id: f.id,
352
- title: f.name,
353
- subtitle: f.description,
354
- meta: (f.item_count || 0) + (f.item_count === 1 ? ' item' : ' items'),
355
- use_hint: 'List media in my "{TITLE}" folder (folder_id: {ID}).'
356
- })),
357
- total: folders.length
358
- });
359
- }
360
-
361
- return { content: [{ type: 'text', text }] };
346
+ return listResult(text, {
347
+ widget: 'list',
348
+ title: 'Media Folders',
349
+ items: folders.map(f => ({
350
+ id: f.id,
351
+ title: f.name,
352
+ subtitle: f.description,
353
+ meta: (f.item_count || 0) + (f.item_count === 1 ? ' item' : ' items'),
354
+ use_hint: 'List media in my "{TITLE}" folder (folder_id: {ID}).'
355
+ })),
356
+ total: folders.length
357
+ });
362
358
  }
363
359
  );
364
360
 
@@ -5,10 +5,9 @@
5
5
 
6
6
  const { z } = require('zod');
7
7
  const { buildProjectUrl } = require('./_shared');
8
- const { UI, uiResult, appsEnabled } = require('../apps');
8
+ const { listResult } = require('../apps');
9
9
 
10
- function registerProjectTools(server, client, options = {}) {
11
- const ui = () => appsEnabled(server, options);
10
+ function registerProjectTools(server, client) {
12
11
  // ─── list_projects ─────────────────────────────────────────
13
12
  server.tool(
14
13
  'list_projects',
@@ -42,22 +41,18 @@ function registerProjectTools(server, client, options = {}) {
42
41
  _hint: 'Pass the chosen `id` as `project_id` on any generate_* tool to drop the generation into that project. Omit project_id to use the project flagged is_default:true. `open_url` opens that project\'s media in the web app (share it with the user). If `pagination.has_more` is true there are more projects — narrow with `search` rather than paging through everything.'
43
42
  }, null, 2);
44
43
 
45
- if (ui()) {
46
- return uiResult(UI.list, text, {
47
- widget: 'list',
48
- title: 'Your Projects',
49
- items: projects.map(p => ({
50
- id: p.id,
51
- title: p.name,
52
- subtitle: p.role + (p.is_default ? ' · default' : '') + (p.is_archived ? ' · archived' : ''),
53
- open_url: p.open_url,
54
- use_hint: 'Use my "{TITLE}" project (project_id: {ID}) for what I do next.'
55
- })),
56
- total: projects.length
57
- });
58
- }
59
-
60
- return { content: [{ type: 'text', text }] };
44
+ return listResult(text, {
45
+ widget: 'list',
46
+ title: 'Your Projects',
47
+ items: projects.map(p => ({
48
+ id: p.id,
49
+ title: p.name,
50
+ subtitle: p.role + (p.is_default ? ' · default' : '') + (p.is_archived ? ' · archived' : ''),
51
+ open_url: p.open_url,
52
+ use_hint: 'Use my "{TITLE}" project (project_id: {ID}) for what I do next.'
53
+ })),
54
+ total: projects.length
55
+ });
61
56
  }
62
57
  );
63
58
 
@@ -135,20 +130,17 @@ function registerProjectTools(server, client, options = {}) {
135
130
  generations,
136
131
  _hint: 'This is an inventory, not a live generation. Pass the `id` values to `move_generations_to_session` (into an existing session) or `split_session` (into a new one). `in_flight: true` means it is still running and cannot be moved yet.'
137
132
  }, null, 2);
138
- if (ui()) {
139
- return uiResult(UI.list, text, {
140
- widget: 'list',
141
- title: (result.session && result.session.name) || 'Session generations',
142
- items: generations.map((g) => ({
143
- id: g.id,
144
- title: (g.prompt && String(g.prompt).slice(0, 80)) || g.id,
145
- subtitle: [g.status, g.output_count ? g.output_count + ' outputs' : null].filter(Boolean).join(' · '),
146
- badge: g.in_flight ? 'running' : g.status
147
- })),
148
- total: generations.length
149
- });
150
- }
151
- return { content: [{ type: 'text', text }] };
133
+ return listResult(text, {
134
+ widget: 'list',
135
+ title: (result.session && result.session.name) || 'Session generations',
136
+ items: generations.map((g) => ({
137
+ id: g.id,
138
+ title: (g.prompt && String(g.prompt).slice(0, 80)) || g.id,
139
+ subtitle: [g.status, g.output_count ? g.output_count + ' outputs' : null].filter(Boolean).join(' · '),
140
+ badge: g.in_flight ? 'running' : g.status
141
+ })),
142
+ total: generations.length
143
+ });
152
144
  }
153
145
  );
154
146
 
@@ -316,26 +308,22 @@ function registerProjectTools(server, client, options = {}) {
316
308
  _hint: 'Each row has project_id — pass it on every later generate/chat/upload in this conversation. Empty leftover sessions after a move: delete_session.'
317
309
  }, null, 2);
318
310
 
319
- if (ui()) {
320
- return uiResult(UI.list, text, {
321
- widget: 'list',
322
- title: 'Sessions' + (type ? ' — ' + type : '') + ' (' + sessions.length + ')',
323
- items: sessions.map(s => ({
324
- id: s.session_id,
325
- title: s.name || s.types[0] || s.type || 'Session',
326
- subtitle: [
327
- s.session_id,
328
- (s.types || []).join(', '),
329
- s.project_id ? 'project ' + s.project_id : null,
330
- s.updated_at ? String(s.updated_at).slice(0, 10) : null
331
- ].filter(Boolean).join(' · '),
332
- badge: (s.types && s.types[0]) || undefined
333
- })),
334
- total: sessions.length
335
- });
336
- }
337
-
338
- return { content: [{ type: 'text', text }] };
311
+ return listResult(text, {
312
+ widget: 'list',
313
+ title: 'Sessions' + (type ? ' — ' + type : '') + ' (' + sessions.length + ')',
314
+ items: sessions.map(s => ({
315
+ id: s.session_id,
316
+ title: s.name || s.types[0] || s.type || 'Session',
317
+ subtitle: [
318
+ s.session_id,
319
+ (s.types || []).join(', '),
320
+ s.project_id ? 'project ' + s.project_id : null,
321
+ s.updated_at ? String(s.updated_at).slice(0, 10) : null
322
+ ].filter(Boolean).join(' · '),
323
+ badge: (s.types && s.types[0]) || undefined
324
+ })),
325
+ total: sessions.length
326
+ });
339
327
  }
340
328
  );
341
329
 
@@ -416,21 +404,17 @@ function registerProjectTools(server, client, options = {}) {
416
404
  const sources = result.sources || [];
417
405
  const text = JSON.stringify({ sources, count: result.count || 0 }, null, 2);
418
406
 
419
- if (ui()) {
420
- return uiResult(UI.list, text, {
421
- widget: 'list',
422
- title: 'Project Knowledge Base',
423
- items: sources.map(s => ({
424
- id: s.file_key,
425
- title: s.title || s.type,
426
- subtitle: s.type + ' · ' + s.status,
427
- open_url: s.url || null
428
- })),
429
- total: sources.length
430
- });
431
- }
432
-
433
- return { content: [{ type: 'text', text }] };
407
+ return listResult(text, {
408
+ widget: 'list',
409
+ title: 'Project Knowledge Base',
410
+ items: sources.map(s => ({
411
+ id: s.file_key,
412
+ title: s.title || s.type,
413
+ subtitle: s.type + ' · ' + s.status,
414
+ open_url: s.url || null
415
+ })),
416
+ total: sources.length
417
+ });
434
418
  }
435
419
  );
436
420
 
@@ -6,7 +6,7 @@
6
6
  const { z } = require('zod');
7
7
  const FormData = require('form-data');
8
8
  const { resolveToBuffer: sharedResolveToBuffer, VISUAL_DNA_MAX_BYTES, projectScopeReadField, compactList } = require('./_shared');
9
- const { UI, uiResult, appsEnabled } = require('../apps');
9
+ const { UI, uiResult, listResult, appsEnabled } = require('../apps');
10
10
 
11
11
  // Visual DNA caps reference media at 25MB per file (stricter than the
12
12
  // default _shared.resolveToBuffer cap — DNA profiles only need enough
@@ -227,21 +227,17 @@ function registerVisualDnaTools(server, client, options = {}) {
227
227
  const folders = result.folders || [];
228
228
  const text = JSON.stringify({ folders, count: result.count || 0 }, null, 2);
229
229
 
230
- if (ui()) {
231
- return uiResult(UI.list, text, {
232
- widget: 'list',
233
- title: 'Visual DNA Folders',
234
- items: folders.map(f => ({
235
- id: f.id,
236
- title: f.name,
237
- meta: f.item_count != null ? (f.item_count + (f.item_count === 1 ? ' DNA' : ' DNAs')) : null,
238
- use_hint: 'List Visual DNAs in my "{TITLE}" folder (folder_id: {ID}).'
239
- })),
240
- total: folders.length
241
- });
242
- }
243
-
244
- return { content: [{ type: 'text', text }] };
230
+ return listResult(text, {
231
+ widget: 'list',
232
+ title: 'Visual DNA Folders',
233
+ items: folders.map(f => ({
234
+ id: f.id,
235
+ title: f.name,
236
+ meta: f.item_count != null ? (f.item_count + (f.item_count === 1 ? ' DNA' : ' DNAs')) : null,
237
+ use_hint: 'List Visual DNAs in my "{TITLE}" folder (folder_id: {ID}).'
238
+ })),
239
+ total: folders.length
240
+ });
245
241
  }
246
242
  );
247
243