Find Types
repolens_find_typesFind type aliases and interface definitions across repositories with AST-based search. Supports wildcard patterns, language filters, and ad-hoc paths to locate type declarations quickly.
Instructions
Find type aliases and interface definitions across repositories using AST analysis.
Searches for both "type" and "interface" declarations. For PHP, finds interface declarations (PHP has no type aliases). Uses ast-grep for accurate structural matching.
Args:
name (string, optional): Type/interface name pattern. Supports wildcards: "*Props", "Config", "I"
paths (string, optional): Ad-hoc directory paths to search (comma-separated). No registration needed.
repoFilter (string, optional): Filter registered repositories by alias (comma-separated)
language (string, optional): Filter by language: "typescript", "javascript", "php"
exportedOnly (boolean, optional): Only return exported types (default: false)
maxResults (number, optional): Maximum results to return (default: 100)
response_format (string, optional): Output format - "markdown" (default) or "json"
Examples:
Search a directory directly: paths="/home/user/projects/api"
Find all props types: name="*Props"
Find interfaces with prefix: name="I*", exportedOnly=true
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Type name pattern | |
| paths | No | Ad-hoc directory paths to search (comma-separated). No registration needed. | |
| language | No | Filter by language (typescript, javascript, php, ts, js) | |
| maxResults | No | Maximum results (default: 100, max: 500) | |
| repoFilter | No | Filter registered repositories by alias (comma-separated) | |
| exportedOnly | No | Only return exported symbols (default: false) | |
| response_format | No | Output format: "markdown" (default) or "json" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of results returned | |
| results | Yes | Array of symbol results |