ts_search
Retrieve Token Savior tool candidates matching a natural-language query via embedding cosine similarity. Outputs schema or TypeScript signature for each.
Instructions
Find the top-K Token Savior tools most relevant to a natural-language query via embedding cosine similarity. Use when the manifest is in 'tiny' or 'code_mode' profile or you don't know which tool fits. Returns each candidate with its full inputSchema (format='schema') or a one-line TypeScript signature (format='ts') suitable for ts_execute scripts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural-language description of what you need (e.g. 'find dependents of update_user'). | |
| top_k | No | How many tool candidates to return (default 5, max 12). | |
| include_schema | No | If false, drop inputSchema from the response (smaller payload). | |
| format | No | 'schema' (default) returns JSONSchema; 'ts' returns a TypeScript signature for Code Mode scripts. Auto-set to 'ts' when profile=code_mode. |