> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# SearchDocumentsMarkdown

# Package: semanticSearch

# Namespace: DocumentSearchService

# Method link: https://dev.wix.com/docs/api-reference/tools/semantic-search/search-documents-markdown.md

## Introduction

Searches Wix documentation and returns results as a single markdown string
ready to be passed directly to an LLM.

Method results are interleaved 2-by-2 with article results so both types
always appear (pass ranking RELEVANCE for pure score order). Pass
document_types to search several documentation types as one combined
ranking. Result content is truncated per the lines_in_each_result
budget (defaults to 20) with a contextual hint (method results get a schema
read hint; article results get a "read the full article" hint). Results are
separated by a line of equal signs.

---

## REST API

### Schema

```
 Method: searchDocumentsMarkdown
 Description: Searches Wix documentation and returns results as a single markdown string ready to be passed directly to an LLM.  Method results are interleaved 2-by-2 with article results so both types always appear (pass ranking RELEVANCE for pure score order). Pass document_types to search several documentation types as one combined ranking. Result content is truncated per the lines_in_each_result budget (defaults to 20) with a contextual hint (method results get a schema read hint; article results get a "read the full article" hint). Results are separated by a line of equal signs.
 URL: https://www.wixapis.com/mcp-docs-search/v1/v1/docs/search/markdown
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  searchTerm
 Method parameters: 
   param name: documentType | type: DocumentType | description: The type of Wix documentation to search.  
      - enum:
           DOCUMENT_TYPE_UNSPECIFIED - Default value. Must not be used.
           VELO - Velo JavaScript APIs for Wix sites.
           SDK - Wix JavaScript SDK for headless and external applications.
           REST - Wix REST APIs.
           WDS - Wix Design System documentation.
           BUILD_APPS - Documentation for building Wix apps.
           WIX_HEADLESS - Wix Headless documentation for external and headless applications.
           CLI - Wix CLI documentation.
           BUSINESS_SOLUTIONS - Wix business solutions and workflow documentation.
           OVERVIEW - High-level Wix platform and business overview documentation.
           SKILLS - Task-oriented skills articles (docs nodes published under a /skills/ path).
           HELP_CENTER - Wix Help Center articles (support.wix.com): how to do things in the Wix
dashboard and editors, for site owners rather than developers.
   param name: documentTypes | type: array<documentTypes> | description: Several documentation types searched as one combined, deduplicated ranking (e.g. [REST, SKILLS, WIX_HEADLESS]). When non-empty, takes precedence over document_type. Results from every selected type compete in the same relevance ranking and the same method/article interleaving.  | validation: maxItems 20
                 - enum:
                 -     DOCUMENT_TYPE_UNSPECIFIED: Default value. Must not be used.
                 -     VELO: Velo JavaScript APIs for Wix sites.
                 -     SDK: Wix JavaScript SDK for headless and external applications.
                 -     REST: Wix REST APIs.
                 -     WDS: Wix Design System documentation.
                 -     BUILD_APPS: Documentation for building Wix apps.
                 -     WIX_HEADLESS: Wix Headless documentation for external and headless applications.
                 -     CLI: Wix CLI documentation.
                 -     BUSINESS_SOLUTIONS: Wix business solutions and workflow documentation.
                 -     OVERVIEW: High-level Wix platform and business overview documentation.
                 -     SKILLS: Task-oriented skills articles (docs nodes published under a /skills/ path).
                 -     HELP_CENTER: Wix Help Center articles (support.wix.com): how to do things in the Wix dashboard and editors, for site owners rather than developers.
   param name: linesInEachResult | type: linesInEachResult | description: Per-result line budget. Defaults to 20. Article results are truncated to this many lines. Method results are truncated per section: each section gets up to this many lines, with per-section floors (30 lines for the first code example, 15 elsewhere) so small budgets never cut the one thing a section exists for; larger values expose more of every section. Truncation is always explicit — "... N more lines ..." plus a contextual read-more hint — and a code snippet cut mid-example is marked incomplete inside its fence. Pass 0 to return the raw untruncated content for every result — no truncation, markers, or example-title index (the structured examples field on JSON results is unaffected by this value).  | validation: minimum 0, maximum 200, format int32
   param name: maximumResults | type: maximumResults | description: The maximum number of results to return. Defaults to 15. Valid range: [1, 20]. Applies to the combined response when several document types are selected.  | validation: minimum 1, maximum 20, format int32
   param name: ranking | type: RankingMode | description: How ranked candidates become the response list.  
      - enum:
           RANKING_MODE_UNSPECIFIED - Default value. Treated as INTERLEAVED.
           INTERLEAVED - Method results are interleaved 2-by-2 with article results so both types
always appear, score-ordered within each group.
           RELEVANCE - Pure combined relevance-score order, no interleaving.
   param name: searchTerm | type: searchTerm | description: The search term to look up in the documentation. | required: true | validation: minLength 1, maxLength 500
 Return type: SearchDocumentsMarkdownResponse
  - name: content | type: string | description: The search results as a single markdown document. Method results are interleaved with article results. Results are separated by a line of equal signs.  | validation: maxLength 500000


```

### Examples

### Search Documentation (Markdown)
Searches Wix documentation by search term and returns results as a formatted markdown string, ready to be passed directly to an LLM.

```curl
curl -X POST https://www.wixapis.com/mcp-docs-search/v1/docs/search/markdown \
    -H 'Content-Type: application/json' \
    -H 'Authorization: <AUTH>' \
    --data-raw '{
      "search_term": "query item selections",
      "document_type": "REST",
      "maximum_results": 4,
      "lines_in_each_result": 20
    }'
```

---