Troubleshooting¶
Find the symptom, then follow the cause. Observations come from macOS and Windows hosts; other versions may differ.
Quick index¶
| Symptom | Section |
|---|---|
| MCP connects but the tool list is empty | Missing SDK dependency |
gui_roundtrip returns saved: false |
Save reports false |
| Paste into Axure changes nothing | Paste does nothing |
| Axure shows "Exception has been thrown by the target of an invocation" | Rejected payload |
| Preview shows an old version | Preview not updating |
| Page switch 404s in the preview | Preview page range |
First gui_roundtrip reports "Owned job document is unavailable" |
First roundtrip |
| Repeater preview is blank | Repeater blank page |
Missing SDK dependency¶
MCP connects but exposes no tools: the optional @modelcontextprotocol/sdk dependency is missing.
Run npm ci --ignore-scripts in the project directory, then restart or reconnect the client. The
server reports this at startup instead of returning an empty list silently.
Save reports false¶
Axure may skip writing a document it considers unmodified. The host returns saved: false and
records saveCommandIssued: true separately. Acceptance uses the issued save command; the actual
write is judged by file modification time. This is truthful reporting, not a failure.
Paste does nothing¶
Three independent causes, check them in this order:
- Clipboard cache. Axure sometimes evaluates the clipboard once and keeps the paste menu disabled. The script writes the clipboard and retries focus twice, then fails explicitly.
- A modal dialog is waiting. With large embedded images Axure may show "The pasted widgets include large images and may cause the application to run slower". The script already sent the menu command, so nothing looks wrong — but the paste never runs until the dialog is dismissed. Choose No to keep original image quality.
- No document page. Axure at the welcome screen has nowhere to paste. Open a document first.
pasteCommandSent: true only means the menu command was accepted; confirm the actual result in the
outline or on the canvas.
Rejected payload¶
"Exception has been thrown by the target of an invocation" means Axure rejected the payload, not that the environment is broken. Known causes:
- a widget without
id; typeset to 1/2/3/5 without a matchingpathsarray (rectangles usetype: 0);cornersorborderarrays shorter than four values.
Unknown field names are ignored rather than crashing, so failures almost always come from a
type/value combination. Pasting fails as a whole; nothing is half-applied.
Paste lands in the wrong place¶
- Paste embeds into the selected container. Click empty canvas space first to clear the selection.
- Frame coordinates are assembly-internal, not page-absolute. The assembly anchors at the current view position; internal layout is preserved. One prototype = one paste; drag the result if the anchor is not where you want it.
- Paste appends, it does not replace. Repeated pastes stack layers; delete the old block or start from a new blank document for large revisions.
Preview not updating¶
Regenerate through Axure's own preview entry (toolbar ▶ or Publish → Preview). Refreshing the browser may still serve the previous build; check the regenerated path and content.
Preview page range¶
If switching pages 404s or jumps to an old build, check the preview's page generation range. With
"current page" selected, only that page is generated — that does not mean the .rp lost its other
pages. Confirm the source has the pages (rp-read or the Axure page tree), set the range to
include them, regenerate and recheck the sitemap and each page's HTML.
First roundtrip¶
"Owned job document is unavailable" means no document window was observed within the wait window. It does not mean the file is malformed. The host waits and re-delivers the open once; the save/close flow is never restarted. Stages are still reported separately.
Repeater blank page¶
A blank repeater page with a MbwO.ebwJ.mH4K() NRE and a missing page data.js usually means
DataSet.Element rows were written without column-id, type and value. Check the column
mapping, not just the value.
macOS specifics¶
- Clipboard writes fail: run
xcode-select --install. - Menu or paste automation does nothing: grant Accessibility permission to the host process (Terminal, iTerm or the app running the script).
- Clipboard written but Axure ignores it: the paste must be plain text starting with
// axvg(the script adds it). Custom pasteboard types do not work on macOS, unlike Windows.
Windows specifics¶
The PowerShell host keeps the clipboard path, but returns only "clipboard prepared"; it does not run macOS menu commands. Verify the actual paste in Axure before relying on it.