Home / Directory / Svelte / get-documentation

Get documentation

An MCP tool from the Svelte server, run by Svelte.

Retrieves full documentation content for Svelte 5 or SvelteKit sections. Supports flexible search by title (e.g., "$state", "routing") or file path (e.g., "cli/overview"). Can accept a single section name or an array of sections. Before running this, make sure to analyze the users query, as well as the output from list-sections (which should be called first). Then ask for ALL relevant sections the user might require. For example, if the user asks to build anything interactive, you will need to fetch all relevant runes, and so on. Before calling this tool, try to implement Svelte components using your own knowledge and the `svelte-autofixer` tool, since calling this tool is token intensive.

Name on the gateway: svelte__get-documentation.

Parameters

NameTypeDescription
section requiredmixedThe section name(s) to retrieve. Can search by title (e.g., "$state", "load functions") or file path (e.g., "cli/overview"). Supports single string and array of strings

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "svelte__get-documentation",
  "arguments": {
    "section": "…"
  }
}

The first call connects Svelte to your account automatically; nothing to set up. About this server.

Try asking

Use the get documentation tool with section set to ….

More from Svelte