Search spec
spec_searchSearch across WebAssembly spec sections (core, JS API, Web API) by clause anchors, titles, or prose. Returns ranked hits with matched type and snippet for body matches, to locate sections before retrieving details.
Instructions
Full-text search across the section index of a spec (core / js-api / web-api, set spec) — clause anchors/ids, titles, and prose. The entry point when you don't know the exact anchor. Returns ranked hits with a matched_on field (anchor-exact > title > anchor > prose) and a prose snippet for body matches; follow up with section_get.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | Which WebAssembly spec to query: `core` (default; instructions, types, validation, execution, formats), `js-api` (JavaScript embedding), or `web-api` (Web platform integration). | core |
| limit | No | Max ranked hits returned. | |
| query | Yes | Search text. Matched against clause anchors/ids, titles, and prose. E.g. `block type`, `trap`, `funcref`, `streaming compilation`. | |
| version | No | WebAssembly spec version to query. `latest` (default) is the current served version; `main` is the upstream working draft. | latest |