[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BY2PHRZBZEDWNC49K05887":3,"skill-same:01M6BY2PHRZBZEDWNC49K05887":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":12,"ownerDescription":52,"updatedAt":53,"install":54,"resources":66},"01M6BY2PHRZBZEDWNC49K05887","nodetool-troubleshooter",null,"Diagnose a failing NodeTool run on any surface: workflows, mini apps, timelines, sketches, scripts, storyboards, stuck media generations, provider keys and server auth errors.","nodetool-ai\u002Fnodetool","nodetool-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F164873569?v=4","01M6BXPFDW36K9K1MR8ZH63HG2","nodetool.ai","01M6BXPFJ893XM219GQN60B0WK",635,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fpackages\u002Fsystem-skills\u002Fnodetool-troubleshooter\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"nodetool troubleshooter","nodetool","workflows","auth","diagnose","run","server","Media","provider","apps","scripts","errors","true","keys","failing","2026-11-10 10:12:30",false,"---\nname: nodetool-troubleshooter\ndescription: \"Diagnose a failing NodeTool run on any surface: workflows, mini apps, timelines, sketches, scripts, storyboards, stuck media generations, provider keys and server auth errors.\"\nfeatured: true\n---\n\nYou are a NodeTool troubleshooter. Diagnose issues systematically using this guide.\n\n# Read the run summary first\n\nFor an app operation, workflow job or chat turn with a recorded run, start\nwith `get_run`. In `execute_code`, call `nodetool.runs.get(run_id)`. When the\nid is unknown, use `nodetool.runs.list({kind, status, app_id, workflow_id,\nthread_id})` with the relevant filters.\n\nRead the summary's first failed span and ancestor path before replaying work.\nFor saved app inputs and outputs, call `nodetool.runs.get(run_id,\n{include_content: true})` after the summary identifies the relevant run.\nInspect that span with `nodetool.runs.trace(run_id, {focus_span_id,\ninclude_content: true})`, then read its events with\n`nodetool.runs.logs(run_id, {span_id, include_content: true})`. The same tools\nread runs that a person started and runs that an agent started. A failed run\nis a readable outcome. Expired, excluded or truncated content is reported by\nthe reader, so do not recover it from older job logs.\n\nWith shell access, use the same readers:\n\n```bash\nnodetool runs list --status failed --json\nnodetool runs show \u003Crun_id> --json\nnodetool runs trace \u003Crun_id> --focus \u003Cspan_id> --include-content --json\nnodetool runs logs \u003Crun_id> --span \u003Cspan_id> --include-content --json\nnodetool runs tail \u003Crun_id>\n```\n\nResource ids accept the full id or its exact 12-character prefix. Keep trace\nand span ids in full. Use the checks and replay harnesses below after the\nstored trace identifies the failing surface, or when an older execution has\nno run trace.\n\n# Name the surface first\n\nA failure belongs to one document kind, and each kind has its own static check\nand its own replay harness. Checking the wrong one wastes the run.\n\n| Symptom sits in | Static check | Replay | Skill for the fix |\n|---|---|---|---|\n| A workflow graph | `validate_workflow` | `debug_workflow` | `nodetool-workflow-builder` |\n| A mini app: dead button, blank widget | `debug_app {run: false}` | `debug_app {interact}` | `nodetool-app-builder` |\n| A timeline: wrong length, missing clip, bad font | `validate_timeline` | `timeline debug` | `timeline-edit-ops` |\n| A sketch: empty layer, wrong blend | `validate_sketch` | `sketch debug` | `nodetool-sketch` |\n| A JS script or Code node | `validate_js_script`, `validate_code` | `run_js_script`, `test_js_script` | `nodetool-js-scripting` |\n| A 3D model | `validate_model3d` | `render_model3d` | `nodetool-3d-scene` |\n| A storyboard: a shot that will not render | `get_storyboard` | re-render one target | `storyboard-core` |\n| A media call that never came back | `generations get` | `generations await` | below, under **Stuck generation** |\n\nA run that spans surfaces fails at one of them. A mini app over a broken\nworkflow reports that the app is broken: debug the graph as a graph first.\n\n# CLI Debug Harnesses\n\nThese run in the user's shell. The in-product agent uses the tools in the table\nabove instead. From a NodeTool checkout the same commands run as\n`npm run dev:nodetool -- \u003Ccommand>`. Escalate in cost order:\n\n```bash\n# 1. Static check (\u003C1s, no run, no DB for file targets): unknown node types,\n#    missing required props, unselected models, dangling\u002Fmis-typed edges\nnodetool validate \u003Cworkflow_id|workflow.json|workflow.ts>\n\n# 2. Single node in isolation — no workflow authoring needed\nnodetool node run nodetool.text.Concat --props '{\"a\":\"hi\"}' --no-secrets\n\n# 3. Full server-side run → self-contained debug bundle (messages, logs,\n#    outputs, errors) + agent-friendly verdict. --json prints the full report.\nnodetool debug \u003Cworkflow_id|workflow.json> --params '{\"prompt\":\"hi\"}'\nnodetool debug workflow.json --watch     # re-run on save, print verdict diff\n\n# 4. Opt-in expensive surfaces\nnodetool debug \u003Cid> --trace              # OTel spans: timing, tokens, cost\nnodetool debug \u003Cid> --browser --stages   # real browser + per-stage screenshots\n\n# Mini apps: binding validation, then a headless run of every operation\nnodetool app debug \u003Cid> --no-run     # free wiring check\nnodetool app debug \u003Cid> --json\n\n# The other document surfaces — same shape: validate, then replay a scripted session\nnodetool timeline validate \u003Ctimeline_id|sequence.json> --json\nnodetool sketch validate \u003Cimage_document_id|sketch.json> --json\nnodetool jsscript validate \u003Cid|file.json> --json\nnodetool timeline debug \u003Cid> --interact '[…]'\nnodetool sketch debug \u003Cid> --interact '[…]'\nnodetool jsscript debug \u003Cid> --interact '[…]'\n```\n\nFor every one of these, a path that exists on disk wins over an id, and a file\ntarget needs no database. Each `debug` writes a bundle under `nodetool-debug\u002F`\nand exits non-zero on a bad verdict. Read the report's `notSimulated` list\nbefore concluding that a green verdict means the surface works.\n\nThe bundle lands in `nodetool-debug\u002F\u003Cid>-\u003Cts>\u002F` (`report.md`, `server\u002Fmessages.jsonl`, …). Loop: run `debug` → read the verdict → edit → re-run. Against a running server, agents can use the `validate_workflow` and `debug_workflow` tools instead.\n\nFor an older agent execution without stored spans, an external trace can help\ninspect timing and cost. External copies exclude prompts and responses by\ndefault. Use the owned run readers above for recorded content.\n\n```bash\nNODETOOL_TRACE_FILE=\u002Ftmp\u002Ftrace.jsonl nodetool chat\nnodetool --trace-file trace.jsonl run workflow.ts\n```\n\n# Quick Diagnostic Checklist\n\nWhen a user reports a problem, work through this in order:\n\n- [ ] **Connections**: Are all required inputs connected? `validate_workflow` reports the missing ones\n- [ ] **Types**: Do connected types match? `validate_workflow` reports mis-typed edges\n- [ ] **Preview nodes**: Add Preview nodes at each stage to inspect data\n- [ ] **Error messages**: Read red node error text carefully\n- [ ] **Model availability**: Is the model downloaded, and is its provider key set?\n- [ ] **File paths**: Do referenced files exist and have correct permissions?\n- [ ] **API keys**: `list_secrets` shows which keys are configured\n- [ ] **Logs**: The desktop log file (§ Log Inspection), or a server started with `NODETOOL_LOG_LEVEL=debug`\n\n# Node Status Colors\n\n| Color | Status | Action |\n|-------|--------|--------|\n| **Gray** | Not started | Waiting for inputs or not yet reached |\n| **Yellow** | Running | Currently processing, wait |\n| **Green** | Completed | Working correctly |\n| **Red** | Failed | Click node to see error message |\n\n# Common Issues & Solutions\n\n## Workflow Stuck \u002F Not Progressing\n\n**Symptoms**: Yellow nodes that never turn green, no output\n\n**Check**:\n1. Is a model downloading? (first run can be slow)\n2. Is there an infinite loop? (check for cycles in connections)\n3. Is a node waiting on an input whose upstream never emits?\n4. Is the server running? (`nodetool serve` in the user's shell)\n5. Network timeout on API call?\n\n**Fix**: Add Preview nodes before stuck node. Check server logs. Kill and restart if needed.\n\n## Type Mismatch\n\n**Symptoms**: Red edge, error about incompatible types\n\n**Fix**:\n- Hover over the edge to see source\u002Ftarget types\n- Insert a conversion node (`search_nodes` finds one for the type pair), or a `nodetool.code.Code` node for anything else\n- Check `metadataOutputTypes` of source node matches expected input type\n\n## Empty \u002F Null Output\n\n**Symptoms**: Downstream nodes receive nothing, Preview shows null\n\n**Check**:\n1. Add Preview node immediately after the suspect node\n2. Is the upstream node actually completing? (should be green)\n3. Are optional inputs that are actually needed left unconnected?\n4. Is the node returning the correct output key?\n\n## Stuck Generation\n\n**Symptoms**: An image, video, audio or 3D call never returns. The surface shows\na pending take with no error.\n\nEvery provider media call is one `predictions` row, opened before the call and\nclosed with its outcome, so a hung call is visible without reading logs.\n\n```bash\nnodetool generations list --status running --json\nnodetool generations get \u003Cgeneration_id> --json\nnodetool generations await \u003Cgeneration_id> --timeout 300   # exit 1 while running\nnodetool generations cancel \u003Cgeneration_id>\nnodetool generations sweep        # close orphaned rows after a restart\nnodetool generations reconcile \u003Cgeneration_id>   # ask the provider what it billed\n```\n\nA row reading `interrupted` means a restart orphaned it, not that the provider\nfailed. `provider-list` and `provider-get` ask the provider's own record instead\nof the local table, for a run started on another machine. Agents reach the same\nrecord through `list_generations`, `get_generation`, `await_generation`,\n`cancel_generation` and `reconcile_generation`.\n\n## Mini App Shows Nothing\n\n**Symptoms**: The button does nothing, or a widget stays blank after a run.\n\n**Check**, in this order:\n\n1. `debug_app {application_id, run: false}` — free. A binding pointing at a\n   missing input, output or variable is the usual answer.\n2. Does the app have a run trigger at all? A Button needs a `run` action.\n3. Is anything bound to `op:\u003Cid>\u002Fexec#error`? A failed operation with no error\n   binding leaves the app looking idle.\n4. Did the run actually complete? `debug_app {interact}` reports each widget's\n   final state and each invocation's policy decision, so a run that was\n   replaced, queued or timed out says so.\n5. Is the widget bound to the right kind? A Sketch or Timeline reference bound\n   to an Image or Video widget renders nothing.\n\n## Timeline Renders Wrong\n\n**Symptoms**: The cut runs longer than planned, a font differs from the editor,\nan animation does not play.\n\n1. `validate_timeline` first. It catches overlaps, fades longer than their clip,\n   unknown presets, incomplete bindings and non-portable fonts.\n2. A shot is as long as its render, not as long as its directed duration. Check\n   `retimed_shots` from the assembly call.\n3. A CSS generic family (`sans-serif`, `serif`, `system-ui`) is refused where a\n   clip is authored, because the editor, the render and the frame preview would\n   each pick a different typeface. Use a bundled family.\n4. `preview_timeline_frame` before `render_timeline`. Rendering to check an edit\n   is the expensive way to be wrong.\n\n## LLM Poor Quality\n\n**Symptoms**: Agent output is wrong, irrelevant, or garbled\n\n**Fix**:\n- Improve the prompt (be specific, add examples)\n- Use a more capable model (`find_model`, or the ids the provider registry lists)\n- Lower temperature for factual tasks (0.0–0.3)\n- Add few-shot examples in system prompt\n- Use RAG to ground answers in source documents\n\n## RAG \u002F Vector Search Returns Nothing\n\n**Symptoms**: HybridSearch or TextSearch returns empty results\n\n**Check**:\n1. Was the collection actually indexed? Inspect it with a `vector.Count` \u002F `vector.Peek` node, or the editor's collection view.\n2. Does the embedding model match between indexing and search?\n3. Test search directly with a simple query\n4. Review chunking — very small or very large chunks reduce quality\n\n## API Key Errors\n\n**Symptoms**: 401, 403, \"API key invalid\", \"authentication failed\"\n\n**Fix**: call `list_secrets` to see which keys are set, then `request_secret`\nwith the missing name. It opens a dialog where the user types the value, so\nnever ask for a key in chat. From a shell, the user can run\n`nodetool secrets store OPENAI_API_KEY` or export the variable instead.\n\n**Provider key names**: `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GEMINI_API_KEY`, `HF_TOKEN`, `FAL_API_KEY`\n\nA `401` from the NodeTool server itself, not from a provider, is server auth\n(§ Server Returns 401).\n\n## Model Not Found\n\n**Symptoms**: \"Model not found\", \"model does not exist\"\n\n**Check**:\n1. For local models: Is the model downloaded? (Models → Model Manager)\n2. For Ollama: Is Ollama running? (`ollama list`)\n3. For cloud: Is the model ID real? Take ids from `find_model` or `list_provider_models`, never from memory\n4. For HuggingFace gated models: Accept terms on HF Hub\n\n## Memory Issues\n\n**Symptoms**: OOM errors, slow processing, system unresponsive\n\n**Fix**:\n- Use quantized models (INT4\u002FFP4) for local inference\n- Enable CPU offload for large models\n- Reduce batch sizes\n- Use smaller model variants\n- For Docker: increase `--memory` limit\n\n## Server Returns 401\n\n**Symptoms**: The UI loads but API or WebSocket calls fail with `401`, or a\nclient gets \"Remote access requires authentication\".\n\nThe server picks its auth mode from `SUPABASE_URL` and `SUPABASE_KEY` alone. It\nreads neither `AUTH_PROVIDER` nor `NODETOOL_SERVER_MODE`.\n\n| Mode | Enabled by | Accepted credentials |\n|------|------------|----------------------|\n| Local | Default, with the Supabase variables unset | Loopback connections run as user `\"1\"` with no token. `NODETOOL_TRUST_LOCALHOST=false` turns that off. Sources in `NODETOOL_TRUST_LOCAL_NETWORKS` (comma-separated CIDRs) also run as user `\"1\"` with no token. A bearer equal to `SERVER_AUTH_TOKEN` runs as user `\"1\"`. A token minted by `nodetool deploy users-add` runs as that API user. Anything else gets `401`. |\n| Supabase | `SUPABASE_URL` and `SUPABASE_KEY` both set | Every non-public request needs a valid Supabase JWT. `SERVER_AUTH_TOKEN`, `NODETOOL_TRUST_LOCAL_NETWORKS` and API-user tokens are ignored. Loopback is trusted only with `NODETOOL_TRUST_LOCALHOST=true`. |\n\nIn both modes, an access token (`ntk_…`) created in **Settings → MCP → Connect\nan agent remotely** authenticates as the person who created it. Send any token\nas `Authorization: Bearer \u003Ctoken>`. A WebSocket client that cannot set headers\npasses `?api_key=\u003Ctoken>` on the `\u002Fws` URL.\n\nIn Docker, the published port arrives from the bridge gateway, not loopback, so\nLocal mode refuses it until that range is in `NODETOOL_TRUST_LOCAL_NETWORKS` or\nthe client sends a token. Setup steps are in `nodetool-deployment`.\n\n## Deployment Failures\n\n**Symptoms**: Deploy command fails, server won't start\n\n**Check** (the user runs these in their shell):\n1. `nodetool deploy show \u003Cname>` parses `deployment.yaml` without a remote call\n2. `nodetool deploy plan \u003Cname>` before `apply`\n3. Docker running on the host? (`docker ps`)\n4. Port already in use? (`lsof -i :7777`)\n5. Volume mount paths exist?\n6. SSH key permissions correct? (600)\n\n# Debugging Techniques\n\n## Preview Node Strategy\n```\nInput → Preview(1) → Transform → Preview(2) → LLM → Preview(3) → Output\n```\nAdd Preview nodes at each stage to isolate where data breaks.\n\n## Log Inspection\n\nThe desktop app writes `nodetool.log` to `~\u002F.local\u002Fshare\u002Fnodetool\u002Flogs\u002F` on\nmacOS and Linux, and to `%LOCALAPPDATA%\\nodetool\\logs\\` on Windows.\n\nIn the user's shell, `NODETOOL_LOG_LEVEL=debug nodetool serve` starts a server\nwith verbose logs. Logging is set by that env var, not a `serve` flag. Browser\nerrors are in the DevTools console (View → Developer Tools).\n\n## JSON Export\nExport workflow as JSON (`File → Export`) to inspect:\n- Node `data` fields for property values\n- Edge `sourceHandle`\u002F`targetHandle` names\n- Node `type` strings for correctness\n\n## Network Debugging\n\nIn the user's shell:\n\n```bash\n# Check server health\ncurl http:\u002F\u002Flocalhost:7777\u002Fhealth\n\n# Test API auth\ncurl -H \"Authorization: Bearer TOKEN\" http:\u002F\u002Flocalhost:7777\u002Fv1\u002Fmodels\n\n# Check WebSocket\nwscat -c ws:\u002F\u002Flocalhost:7777\u002Fws\n```\n\n# Performance Optimization\n\n| Issue | Solution |\n|-------|----------|\n| Slow LLM responses | Use local models for simple tasks, cloud for complex |\n| Large file processing | Batch processing, stream with `genProcess` |\n| Multiple independent tasks | Use parallel execution paths in workflow |\n| Repeated computations | Cache results, avoid redundant nodes |\n| Model loading time | Keep models in memory (server mode), pre-download |\n| High memory usage | Right-size models, use quantized variants |\n| Slow vector search | Optimize chunk size (200-500 tokens) |\n\n# Error Recovery Patterns\n\n1. **Read the error message carefully** — most errors are self-explanatory\n2. **Check the simplest explanation first** — missing connection, wrong type, no API key\n3. **Isolate with Preview nodes** — find exactly where data breaks\n4. **Check logs** — server logs have full stack traces\n5. **Restart if stuck** — kill server, clear cache, restart\n6. **Reduce complexity** — test with a minimal workflow first, then add nodes\n","You are a NodeTool troubleshooter. Diagnose issues systematically using this guide.\n\n# Read the run summary first\n\nFor an app operation, workflow job or chat turn with a recorded run, start\nwith `get_run`. In `execute_code`, call `nodetool.runs.get(run_id)`. When the\nid is unknown, use `nodetool.runs.list({kind, status, app_id, workflow_id,\nthread_id})` with the relevant filters.\n\nRead the summary's first failed span and ancestor path before replaying work.\nFor saved app inputs and outputs, call `nodetool.runs.get(run_id,\n{include_content: true})` after the summary identifies the relevant run.\nInspect that span with `nodetool.runs.trace(run_id, {focus_span_id,\ninclude_content: true})`, then read its events with\n`nodetool.runs.logs(run_id, {span_id, include_content: true})`. The same tools\nread runs that a person started and runs that an agent started. A failed run\nis a readable outcome. Expired, excluded or truncated content is reported by\nthe reader, so do not recover it from older job logs.\n\nWith shell access, use the same readers:\n\n```bash\nnodetool runs list --status failed --json\nnodetool runs show \u003Crun_id> --json\nnodetool runs trace \u003Crun_id> --focus \u003Cspan_id> --include-content --json\nnodetool runs logs \u003Crun_id> --span \u003Cspan_id> --include-content --json\nnodetool runs tail \u003Crun_id>\n```\n\nResource ids accept the full id or its exact 12-character prefix. Keep trace\nand span ids in full. Use the checks and replay harnesses below after the\nstored trace identifies the failing surface, or when an older execution has\nno run trace.\n\n# Name the surface first\n\nA failure belongs to one document kind, and each kind has its own static check\nand its own replay harness. Checking the wrong one wastes the run.\n\n| Symptom sits in | Static check | Replay | Skill for the fix |\n|---|---|---|---|\n| A workflow graph | `validate_workflow` | `debug_workflow` | `nodetool-workflow-builder` |\n| A mini app: dead button, blank widget | `debug_app {run: false}` | `debug_app {interact}` | `nodetool-app-builder` |\n| A timeline: wrong length, missing clip, bad font | `validate_timeline` | `timeline debug` | `timeline-edit-ops` |\n| A sketch: empty layer, wrong blend | `validate_sketch` | `sketch debug` | `nodetool-sketch` |\n| A JS script or Code node | `validate_js_script`, `validate_code` | `run_js_script`, `test_js_script` | `nodetool-js-scripting` |\n| A 3D model | `validate_model3d` | `render_model3d` | `nodetool-3d-scene` |\n| A storyboard: a shot that will not render | `get_storyboard` | re-render one target | `storyboard-core` |\n| A media call that never came back | `generations get` | `generations await` | below, under **Stuck generation** |\n\nA run that spans surfaces fails at one of them. A mini app over a broken\nworkflow reports that the app is broken: debug the graph as a graph first.\n\n# CLI Debug Harnesses\n\nThese run in the user's shell. The in-product agent uses the tools in the table\nabove instead. From a NodeTool checkout the same commands run as\n`npm run dev:nodetool -- \u003Ccommand>`. Escalate in cost order:\n\n```bash\n# 1. Static check (\u003C1s, no run, no DB for file targets): unknown node types,\n#    missing required props, unselected models, dangling\u002Fmis-typed edges\nnodetool validate \u003Cworkflow_id|workflow.json|workflow.ts>\n\n# 2. Single node in isolation — no workflow authoring needed\nnodetool node run nodetool.text.Concat --props '{\"a\":\"hi\"}' --no-secrets\n\n# 3. Full server-side run → self-contained debug bundle (messages, logs,\n#    outputs, errors) + agent-friendly verdict. --json prints the full report.\nnodetool debug \u003Cworkflow_id|workflow.json> --params '{\"prompt\":\"hi\"}'\nnodetool debug workflow.json --watch     # re-run on save, print verdict diff\n\n# 4. Opt-in expensive surfaces\nnodetool debug \u003Cid> --trace              # OTel spans: timing, tokens, cost\nnodetool debug \u003Cid> --browser --stages   # real browser + per-stage screenshots\n\n# Mini apps: binding validation, then a headless run of every operation\nnodetool app debug \u003Cid> --no-run     # free wiring check\nnodetool app debug \u003Cid> --json\n\n# The other document surfaces — same shape: validate, then replay a scripted session\nnodetool timeline validate \u003Ctimeline_id|sequence.json> --json\nnodetool sketch validate \u003Cimage_document_id|sketch.json> --json\nnodetool jsscript validate \u003Cid|file.json> --json\nnodetool timeline debug \u003Cid> --interact '[…]'\nnodetool sketch debug \u003Cid> --interact '[…]'\nnodetool jsscript debug \u003Cid> --interact '[…]'\n```\n\nFor every one of these, a path that exists on disk wins over an id, and a file\ntarget needs no database. Each `debug` writes a bundle under `nodetool-debug\u002F`\nand exits non-zero on a bad verdict. Read the report's `notSimulated` list\nbefore concluding that a green verdict means the surface works.\n\nThe bundle lands in `nodetool-debug\u002F\u003Cid>-\u003Cts>\u002F` (`report.md`, `server\u002Fmessages.jsonl`, …). Loop: run `debug` → read the verdict → edit → re-run. Against a running server, agents can use the `validate_workflow` and `debug_workflow` tools instead.\n\nFor an older agent execution without stored spans, an external trace can help\ninspect timing and cost. External copies exclude prompts and responses by\ndefault. Use the owned run readers above for recorded content.\n\n```bash\nNODETOOL_TRACE_FILE=\u002Ftmp\u002Ftrace.jsonl nodetool chat\nnodetool --trace-file trace.jsonl run workflow.ts\n```\n\n# Quick Diagnostic Checklist\n\nWhen a user reports a problem, work through this in order:\n\n- [ ] **Connections**: Are all required inputs connected? `validate_workflow` reports the missing ones\n- [ ] **Types**: Do connected types match? `validate_workflow` reports mis-typed edges\n- [ ] **Preview nodes**: Add Preview nodes at each stage to inspect data\n- [ ] **Error messages**: Read red node error text carefully\n- [ ] **Model availability**: Is the model downloaded, and is its provider key set?\n- [ ] **File paths**: Do referenced files exist and have correct permissions?\n- [ ] **API keys**: `list_secrets` shows which keys are configured\n- [ ] **Logs**: The desktop log file (§ Log Inspection), or a server started with `NODETOOL_LOG_LEVEL=debug`\n\n# Node Status Colors\n\n| Color | Status | Action |\n|-------|--------|--------|\n| **Gray** | Not started | Waiting for inputs or not yet reached |\n| **Yellow** | Running | Currently processing, wait |\n| **Green** | Completed | Working correctly |\n| **Red** | Failed | Click node to see error message |\n\n# Common Issues & Solutions\n\n## Workflow Stuck \u002F Not Progressing\n\n**Symptoms**: Yellow nodes that never turn green, no output\n\n**Check**:\n1. Is a model downloading? (first run can be slow)\n2. Is there an infinite loop? (check for cycles in connections)\n3. Is a node waiting on an input whose upstream never emits?\n4. Is the server running? (`nodetool serve` in the user's shell)\n5. Network timeout on API call?\n\n**Fix**: Add Preview nodes before stuck node. Check server logs. Kill and restart if needed.\n\n## Type Mismatch\n\n**Symptoms**: Red edge, error about incompatible types\n\n**Fix**:\n- Hover over the edge to see source\u002Ftarget types\n- Insert a conversion node (`search_nodes` finds one for the type pair), or a `nodetool.code.Code` node for anything else\n- Check `metadataOutputTypes` of source node matches expected input type\n\n## Empty \u002F Null Output\n\n**Symptoms**: Downstream nodes receive nothing, Preview shows null\n\n**Check**:\n1. Add Preview node immediately after the suspect node\n2. Is the upstream node actually completing? (should be green)\n3. Are optional inputs that are actually needed left unconnected?\n4. Is the node returning the correct output key?\n\n## Stuck Generation\n\n**Symptoms**: An image, video, audio or 3D call never returns. The surface shows\na pending take with no error.\n\nEvery provider media call is one `predictions` row, opened before the call and\nclosed with its outcome, so a hung call is visible without reading logs.\n\n```bash\nnodetool generations list --status running --json\nnodetool generations get \u003Cgeneration_id> --json\nnodetool generations await \u003Cgeneration_id> --timeout 300   # exit 1 while running\nnodetool generations cancel \u003Cgeneration_id>\nnodetool generations sweep        # close orphaned rows after a restart\nnodetool generations reconcile \u003Cgeneration_id>   # ask the provider what it billed\n```\n\nA row reading `interrupted` means a restart orphaned it, not that the provider\nfailed. `provider-list` and `provider-get` ask the provider's own record instead\nof the local table, for a run started on another machine. Agents reach the same\nrecord through `list_generations`, `get_generation`, `await_generation`,\n`cancel_generation` and `reconcile_generation`.\n\n## Mini App Shows Nothing\n\n**Symptoms**: The button does nothing, or a widget stays blank after a run.\n\n**Check**, in this order:\n\n1. `debug_app {application_id, run: false}` — free. A binding pointing at a\n   missing input, output or variable is the usual answer.\n2. Does the app have a run trigger at all? A Button needs a `run` action.\n3. Is anything bound to `op:\u003Cid>\u002Fexec#error`? A failed operation with no error\n   binding leaves the app looking idle.\n4. Did the run actually complete? `debug_app {interact}` reports each widget's\n   final state and each invocation's policy decision, so a run that was\n   replaced, queued or timed out says so.\n5. Is the widget bound to the right kind? A Sketch or Timeline reference bound\n   to an Image or Video widget renders nothing.\n\n## Timeline Renders Wrong\n\n**Symptoms**: The cut runs longer than planned, a font differs from the editor,\nan animation does not play.\n\n1. `validate_timeline` first. It catches overlaps, fades longer than their clip,\n   unknown presets, incomplete bindings and non-portable fonts.\n2. A shot is as long as its render, not as long as its directed duration. Check\n   `retimed_shots` from the assembly call.\n3. A CSS generic family (`sans-serif`, `serif`, `system-ui`) is refused where a\n   clip is authored, because the editor, the render and the frame preview would\n   each pick a different typeface. Use a bundled family.\n4. `preview_timeline_frame` before `render_timeline`. Rendering to check an edit\n   is the expensive way to be wrong.\n\n## LLM Poor Quality\n\n**Symptoms**: Agent output is wrong, irrelevant, or garbled\n\n**Fix**:\n- Improve the prompt (be specific, add examples)\n- Use a more capable model (`find_model`, or the ids the provider registry lists)\n- Lower temperature for factual tasks (0.0–0.3)\n- Add few-shot examples in system prompt\n- Use RAG to ground answers in source documents\n\n## RAG \u002F Vector Search Returns Nothing\n\n**Symptoms**: HybridSearch or TextSearch returns empty results\n\n**Check**:\n1. Was the collection actually indexed? Inspect it with a `vector.Count` \u002F `vector.Peek` node, or the editor's collection view.\n2. Does the embedding model match between indexing and search?\n3. Test search directly with a simple query\n4. Review chunking — very small or very large chunks reduce quality\n\n## API Key Errors\n\n**Symptoms**: 401, 403, \"API key invalid\", \"authentication failed\"\n\n**Fix**: call `list_secrets` to see which keys are set, then `request_secret`\nwith the missing name. It opens a dialog where the user types the value, so\nnever ask for a key in chat. From a shell, the user can run\n`nodetool secrets store OPENAI_API_KEY` or export the variable instead.\n\n**Provider key names**: `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GEMINI_API_KEY`, `HF_TOKEN`, `FAL_API_KEY`\n\nA `401` from the NodeTool server itself, not from a provider, is server auth\n(§ Server Returns 401).\n\n## Model Not Found\n\n**Symptoms**: \"Model not found\", \"model does not exist\"\n\n**Check**:\n1. For local models: Is the model downloaded? (Models → Model Manager)\n2. For Ollama: Is Ollama running? (`ollama list`)\n3. For cloud: Is the model ID real? Take ids from `find_model` or `list_provider_models`, never from memory\n4. For HuggingFace gated models: Accept terms on HF Hub\n\n## Memory Issues\n\n**Symptoms**: OOM errors, slow processing, system unresponsive\n\n**Fix**:\n- Use quantized models (INT4\u002FFP4) for local inference\n- Enable CPU offload for large models\n- Reduce batch sizes\n- Use smaller model variants\n- For Docker: increase `--memory` limit\n\n## Server Returns 401\n\n**Symptoms**: The UI loads but API or WebSocket calls fail with `401`, or a\nclient gets \"Remote access requires authentication\".\n\nThe server picks its auth mode from `SUPABASE_URL` and `SUPABASE_KEY` alone. It\nreads neither `AUTH_PROVIDER` nor `NODETOOL_SERVER_MODE`.\n\n| Mode | Enabled by | Accepted credentials |\n|------|------------|----------------------|\n| Local | Default, with the Supabase variables unset | Loopback connections run as user `\"1\"` with no token. `NODETOOL_TRUST_LOCALHOST=false` turns that off. Sources in `NODETOOL_TRUST_LOCAL_NETWORKS` (comma-separated CIDRs) also run as user `\"1\"` with no token. A bearer equal to `SERVER_AUTH_TOKEN` runs as user `\"1\"`. A token minted by `nodetool deploy users-add` runs as that API user. Anything else gets `401`. |\n| Supabase | `SUPABASE_URL` and `SUPABASE_KEY` both set | Every non-public request needs a valid Supabase JWT. `SERVER_AUTH_TOKEN`, `NODETOOL_TRUST_LOCAL_NETWORKS` and API-user tokens are ignored. Loopback is trusted only with `NODETOOL_TRUST_LOCALHOST=true`. |\n\nIn both modes, an access token (`ntk_…`) created in **Settings → MCP → Connect\nan agent remotely** authenticates as the person who created it. Send any token\nas `Authorization: Bearer \u003Ctoken>`. A WebSocket client that cannot set headers\npasses `?api_key=\u003Ctoken>` on the `\u002Fws` URL.\n\nIn Docker, the published port arrives from the bridge gateway, not loopback, so\nLocal mode refuses it until that range is in `NODETOOL_TRUST_LOCAL_NETWORKS` or\nthe client sends a token. Setup steps are in `nodetool-deployment`.\n\n## Deployment Failures\n\n**Symptoms**: Deploy command fails, server won't start\n\n**Check** (the user runs these in their shell):\n1. `nodetool deploy show \u003Cname>` parses `deployment.yaml` without a remote call\n2. `nodetool deploy plan \u003Cname>` before `apply`\n3. Docker running on the host? (`docker ps`)\n4. Port already in use? (`lsof -i :7777`)\n5. Volume mount paths exist?\n6. SSH key permissions correct? (600)\n\n# Debugging Techniques\n\n## Preview Node Strategy\n```\nInput → Preview(1) → Transform → Preview(2) → LLM → Preview(3) → Output\n```\nAdd Preview nodes at each stage to isolate where data breaks.\n\n## Log Inspection\n\nThe desktop app writes `nodetool.log` to `~\u002F.local\u002Fshare\u002Fnodetool\u002Flogs\u002F` on\nmacOS and Linux, and to `%LOCALAPPDATA%\\nodetool\\logs\\` on Windows.\n\nIn the user's shell, `NODETOOL_LOG_LEVEL=debug nodetool serve` starts a server\nwith verbose logs. Logging is set by that env var, not a `serve` flag. Browser\nerrors are in the DevTools console (View → Developer Tools).\n\n## JSON Export\nExport workflow as JSON (`File → Export`) to inspect:\n- Node `data` fields for property values\n- Edge `sourceHandle`\u002F`targetHandle` names\n- Node `type` strings for correctness\n\n## Network Debugging\n\nIn the user's shell:\n\n```bash\n# Check server health\ncurl http:\u002F\u002Flocalhost:7777\u002Fhealth\n\n# Test API auth\ncurl -H \"Authorization: Bearer TOKEN\" http:\u002F\u002Flocalhost:7777\u002Fv1\u002Fmodels\n\n# Check WebSocket\nwscat -c ws:\u002F\u002Flocalhost:7777\u002Fws\n```\n\n# Performance Optimization\n\n| Issue | Solution |\n|-------|----------|\n| Slow LLM responses | Use local models for simple tasks, cloud for complex |\n| Large file processing | Batch processing, stream with `genProcess` |\n| Multiple independent tasks | Use parallel execution paths in workflow |\n| Repeated computations | Cache results, avoid redundant nodes |\n| Model loading time | Keep models in memory (server mode), pre-download |\n| High memory usage | Right-size models, use quantized variants |\n| Slow vector search | Optimize chunk size (200-500 tokens) |\n\n# Error Recovery Patterns\n\n1. **Read the error message carefully** — most errors are self-explanatory\n2. **Check the simplest explanation first** — missing connection, wrong type, no API key\n3. **Isolate with Preview nodes** — find exactly where data breaks\n4. **Check logs** — server logs have full stack traces\n5. **Restart if stuck** — kill server, clear cache, restart\n6. **Reduce complexity** — test with a minimal workflow first, then add nodes\n",{"name":5,"featured":44,"description":7},true,"main","c7226baa82daca42a19a5855c116544f97aa8bac","packages\u002Fsystem-skills\u002Fnodetool-troubleshooter",91,"https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool","https:\u002F\u002Fnodetool.ai\u002F","https:\u002F\u002Fgithub.com\u002Fnodetool-ai","No-code AI development","2026-11-15 03:27:49",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":44},[56,59,62],{"tool":57,"command":58},"npx","npx skills add nodetool-ai\u002Fnodetool --skill nodetool-troubleshooter",{"tool":60,"command":61},"bunx","bunx skills add nodetool-ai\u002Fnodetool --skill nodetool-troubleshooter",{"tool":63,"command":64},"pnpm","pnpm dlx skills add nodetool-ai\u002Fnodetool --skill nodetool-troubleshooter","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fpackages\u002Fsystem-skills\u002Fnodetool-troubleshooter\u002FSKILL.md",[],[68,77,108,138,153,169],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":76},"01M742MX3Y2ZYK884ZXTRFKB9P","humanizer","Rewrite AI-sounding text so it reads like the writer without changing what it says.\nUse when editing or reviewing prose for AI tells: not-X-but-Y contrasts, one-line\nclosers, staged openers, forced triads, dashes everywhere, inflated claims, sales\nlanguage, stock AI words, bold labels, or filler.","MIT","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhumanizer\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":78,"name":25,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":90,"publishedAt":39},"01M6BY4D93R0Q9400ZHJ04DXP1","Use the NodeTool MCP server to build, validate, run, and debug visual AI workflows, and to work with assets, collections, and jobs. Use when the user mentions NodeTool or asks for a workflow graph, a node, or a media generation run on their NodeTool server.","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fplugins\u002Fchatgpt\u002Fnodetool\u002Fskills\u002Fnodetool\u002FSKILL.md",[82,85],{"categoryNo":83,"categoryName":84,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":86,"categoryName":87,"taxonomyType":88,"taxonomyTypeDesc":89},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[25,91,31,26,92,93,94,95,96,97,98,99,100,101,102,103,104,105,29,30,106,107],"MCP","when","generation","media generation","with","visual","use","collections","for","node","work","debug","graph","validate","assets","mcp server","workflow",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":117,"publishedAt":39},"01M6BY4AEB05ZPBRVD078ATR2H","wan-2-6-prompting","Prompt Alibaba's Wan 2.6 video — text-to-video with a global style line plus timing-bracketed shots, and image-to-video that describes only what changes over time. Covers the shot-mode switch per provider, the prompt budget, negative prompts, motion intensity wording, audio input and prompt expansion. Use whenever the model id names a Wan 2.6 video route (alibaba\u002Fwan-2.6\u002Ftext-to-video, alibaba\u002Fwan-2.6\u002Fimage-to-video, wan-video\u002Fwan-2.6-t2v, wan-video\u002Fwan-2.6-i2v, wan-video\u002Fwan2.6-i2v-flash) on generate_video, animate_image or a TextToVideo node. Not for Wan 2.5 or 2.7, or the Wan 2.6 image routes.","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fpackages\u002Fsystem-skills\u002Fwan-2-6-prompting\u002FSKILL.md",[114],{"categoryNo":115,"categoryName":116,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000016","图像与多媒体",[118,119,120,121,122,123,124,100,125,126,127,128,129,130,131,132,133,134,135,136,137],"prompting","wan 2 6 prompting","line","expansion","input","image-to-video","text-to-video","route","only","mode","time","flash","Budget","generate","text","image","animate","model","Audio","Video",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":146,"publishedAt":39},"01M6BY47T4748ZG5ZMTAR97ZWZ","video-workflow","Build a reusable NodeTool video workflow for batches or repeated inputs. For a single finished piece, use a storyboard skill.","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fpackages\u002Fsystem-skills\u002Fvideo-workflow\u002FSKILL.md",[144,145],{"categoryNo":115,"categoryName":116,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":83,"categoryName":84,"taxonomyType":21,"taxonomyTypeDesc":22},[107,147,137,148,149,150,151,97,152,25,99],"video workflow","reusable","storyboard","build","batches","single",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":160,"publishedAt":39},"01M6BY4587N2SYN315SXGEMZC3","video-clone","Analyze a reference video and recreate its shot structure with a new product or cast in NodeTool.","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fpackages\u002Fsystem-skills\u002Fvideo-clone\u002FSKILL.md",[159],{"categoryNo":115,"categoryName":116,"taxonomyType":21,"taxonomyTypeDesc":22},[161,162,137,95,163,164,25,165,166,167,168],"clone","video clone","cast","new","analyze","product","structure","reference",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":176,"publishedAt":39},"01M6BY4257C2KQYYMD9EK6DK8E","video-audio-continuity","Keep sound continuous across a multi-scene piece cut from generated video — why one clip per scene hard-cuts the audio at every boundary, when to write all the scenes into a single generation instead, the sound-design vocabulary that survives a provider's copyright filter, and how to check the length, the aspect ratio and the mix of what came back. Use when a piece has more than one scene and the video model writes its own audio (Seedance 2, Veo 3, MiniMax H3, Kling 2.6 and later), or when a cut's sound drops out at the shot changes.","https:\u002F\u002Fgithub.com\u002Fnodetool-ai\u002Fnodetool\u002Fblob\u002Fmain\u002Fpackages\u002Fsystem-skills\u002Fvideo-audio-continuity\u002FSKILL.md",[175],{"categoryNo":115,"categoryName":116,"taxonomyType":21,"taxonomyTypeDesc":22},[177,137,136,178,179,180,181,182,183,184,185,186,187,92,188,189,135,190,191,192,193],"video audio continuity","continuity","write","why","back","veo 3","at","cut","later","across","filter","generated","how to","mix","design","boundary","how"]