(sigil docs search)
(sigil docs search) - Documentation Search
Provides search functionality across all module documentation. Used by MCP tools and REPL commands.
(import (sigil docs search))
;; Search for symbols by name or description
(search-docs "string split")
;; => list of search results
;; Search within a specific module
(search-docs "read" module: "(sigil io)")Exports
search-resultprocedureConstruct a search-result struct.
search-result?procedureTest if a value is a search-result struct.
search-result-nameprocedureGet the name field of a search-result struct.
search-result-moduleprocedureGet the module field of a search-result struct.
search-result-kindprocedureGet the kind field of a search-result struct.
search-result-summaryprocedureGet the summary field of a search-result struct.
clear-search-cacheprocedureClear the search index cache.
search-docsprocedureSearch documentation for symbols matching a query.
Query can be a symbol name or keywords from the description. Results are sorted with exact/prefix matches first.
Options:
- module: Limit search to a specific module (e.g., "(sigil string)")
- limit: Maximum number of results (default: 20)
(search-docs "string split")
(search-docs "read" module: "(sigil io)")list-all-modulesprocedureList all available modules.
Returns a list of module name strings.
get-module-exportsprocedureGet all exports from a module.
Returns a list of search-result structs for each export.