get_repo_symbols
Retrieve symbols from a repository and filter them by type and file path, returning only matching lines.
Instructions
Run kit symbols <repo> and keep the header plus rows
that satisfy the filters.
Parameters
repo : str | Path
Path or name passed to kit symbols.
working_directory : str
The directory to run the command from. Use full absolute path.
keep_types : Iterable[str] | None
Exact values allowed in the Type column
(e.g. {"function", "method", "class"}). None ⇒ no type filter.
file_must_contain : str | None
post-filter: Keep only rows whose File column contains this substring.
None ⇒ no inclusion filter.
file_must_not_contain : str | None
post-filter: Discard rows whose File column contains this substring.
None ⇒ no exclusion filter.
Returns
list[str] | str
Filtered output, ready to print() or write to a file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| keep_types | No | ||
| file_must_contain | No | ||
| working_directory | Yes | ||
| file_must_not_contain | No |