Skip to content

fix(wix-headless): correct broken SDK docs-search kbName#299

Open
gonengar wants to merge 1 commit into
mainfrom
fix/docs-search-sdk-kbname
Open

fix(wix-headless): correct broken SDK docs-search kbName#299
gonengar wants to merge 1 commit into
mainfrom
fix/docs-search-sdk-kbname

Conversation

@gonengar

Copy link
Copy Markdown
Contributor

Problem

references/shared/DOCS_SEARCH.md documented SDK_KB_ID as a valid kbName for the docs-search endpoint. It isn't — the endpoint returns:

HTTP 400 {"error":"KB name is not provided"}

SDK lookups are the bulk of Path B (existing-project SDK wiring) work, so the broken value errored out exactly where the docs-search endpoint matters most — and the recipe's "if it errors, fall back" framing then trained agents to bail to web search instead of using the docs API.

Fix

Replace SDK_KB_ID with the working values:

  • SDK_METHODS_KB_ID — SDK method reference
  • SDK_DOCS_KB_ID — SDK guide articles

Applied to both the skill root and the plugins/wix/ mirror.

Verification

All documented KB names tested live against https://www.wixapis.com/mcp-docs-search/v1/search:

kbName HTTP
REST_METHODS_KB_ID 200
SDK_METHODS_KB_ID 200
HEADLESS_KB_ID 200
SDK_DOCS_KB_ID 200

grep -rn SDK_KB_ID skills/ plugins/ → no matches remaining.

Follow-up (not in this PR)

This is the correctness half of a larger diagnosis on why agents skip the docs endpoints. A follow-up will raise the endpoint's prominence (precedence steer in DOCS_SEARCH.md + SKILL.md, and decision-time pointers in the per-vertical INSTRUCTIONS.md files) so docs-search is tried before web search.

🤖 Generated with Claude Code

`DOCS_SEARCH.md` documented `SDK_KB_ID` as a valid kbName for the
docs-search endpoint, but it returns HTTP 400
`{"error":"KB name is not provided"}`. The working values are
`SDK_METHODS_KB_ID` (method reference) and `SDK_DOCS_KB_ID` (guide
articles). Since SDK lookups are the bulk of Path B wiring work, the
broken value errored out exactly where the endpoint matters most and
trained agents to fall back to web search.

Verified live: REST_METHODS_KB_ID, SDK_METHODS_KB_ID, HEADLESS_KB_ID,
SDK_DOCS_KB_ID all return HTTP 200.

Applied to both the skill root and the plugins/wix/ mirror.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant