search_kcl_samples
Search KCL samples by keyword across titles and descriptions. Returns ranked matching samples with details like name, title, description, and match excerpt.
Instructions
Search KCL samples by keyword.
Searches across all KCL sample titles and descriptions for the given query. Returns matching samples ranked by relevance.
Args: query (str): The search query (case-insensitive). max_results (int): Maximum number of results to return (default: 5).
Returns: list[dict] | str: List of search results, each containing: - name: The sample directory name (use with get_kcl_sample) - title: Human-readable title - description: Brief description of the sample - multipleFiles: Whether the sample contains multiple KCL files. Best-effort hint only — see list_kcl_samples for the full caveat. Call get_kcl_sample if you need a reliable answer. - match_count: Number of times the query appears in title/description - excerpt: A relevant excerpt with the match in context If there was an error, returns an error message string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |