# Documentation Search

> Search Lexsis storefront documentation and read complete pages with lexsis_support

Canonical URL: https://0.0.0.0:3005/tools/docs-search

`lexsis_support` has two read-only actions: `search_docs` finds relevant
passages, and `get_doc` reads a complete page by the path a search returned.
They cover this documentation site plus the storefront skill references.

---

## search_docs

Search documentation and return ranked passages. Results combine the indexed
docs, matching island schemas, and bundled skill references. If the docs search
API is unavailable, bundled documentation is searched instead and the response
includes a `note`.

### Parameters

| Param | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Natural-language or keyword query |
| `category` | string | No | One of the categories in the [Category Guide](#category-guide) |
| `limit` | number (1-10) | No | Number of docs results (default 5) |

### Returns

```typescript
{
  query: string
  total_matches: number
  results: Array<
    | { type: "doc"; title: string; section: string; category: string;
        path: string; content: string; relevance: number }
    | { type: "schema"; island_name: string; category: string;
        prop_names: string[]; variants: string[]; usage_hint: string;
        relevance: number }
    | { type: "skill" | "doc"; name: string; path: string;
        resource_uri?: string; content: string; relevance: number }
  >
}
```

### Example

```json
{
  "name": "lexsis_support",
  "arguments": {
    "action": "search_docs",
    "args": { "query": "lifecycle.storage", "category": "scripting", "limit": 3 }
  }
}
```

---

## get_doc

Read a complete documentation page or skill reference, including nested
references. Pass the `path` from a `search_docs` result; `vibe://skills/...`
URIs are accepted too.

### Parameters

| Param | Type | Required | Description |
|-------|------|----------|-------------|
| `path` | string (1-512 chars) | Yes | A path returned by `search_docs` |

### Returns

```typescript
{
  path: string      // Resolved document path
  content: string   // Full page source
  sha256: string    // Revision hash of the content
  complete: true
}
```

An unknown or unsafe path returns a `VALIDATION_ERROR` naming the problem.

### Example

```json
{
  "name": "lexsis_support",
  "arguments": {
    "action": "get_doc",
    "args": { "path": "islands/commerce/buy-box.mdx" }
  }
}
```

---

## Search Tips

- Use natural language: "how to add testimonials" beats "testimonials add".
- Be specific: "BuyBox variant swatches" beats "buy box".
- Exact identifiers such as `set_review_fallback` or `lifecycle.fetch` rank
  strongly; search for them directly.
- Search to find the page, then call `get_doc` when you need the whole page
  instead of an excerpt.

## Category Guide

Categories match the top-level sections of this site, plus skill references.

| Category | Contains |
|----------|----------|
| `getting-started` | Authentication, quickstart, skill packs |
| `guides` | End-to-end walkthroughs (page builder, A/B testing, reviews) |
| `tools` | MCP tools, actions, parameters and examples |
| `pages` | Page source schema, theming, animations, icons, publishing |
| `islands` | Island props, variants and examples |
| `scripting` | Section JS `lifecycle` runtime and validation rules |
| `cart` | Cart profiles, styling and custom cart modules |
| `tracking` | Tracking tags, page analytics, custom domains |
| `resources` | Generation guide, icon catalog |
| `troubleshooting` | Common errors and fixes |
| `changelog` | Release history |
| `skills` | Storefront skill references |
| `verticals` | Vertical-specific skill references |

---

## Related

- [Getting Started](/getting-started): first page in 5 minutes
- [Tools Overview](/tools): complete tool catalog
- [Resources](/resources): MCP resources for deeper context
