Search within a repo session using rg-style lexical matching over the live session workspace.
Search within a repo session using rg-style lexical matching over the live session workspace. This is scoped code/file search, not semantic retrieval. When mode=regex, patterns must be valid JavaScript RegExp syntax (not Python/PCRE inline flags).
Org permission: package:read.
Request
- Base URL: https://api.kody.codes
- URL: https://api.kody.codes/v1/repo-sessions/{session_id}/search
- Auth: HTTP bearer
Path parameters
Active repo session id from repoOpenSession or repoListSessions.
Query parameters
Literal text or regex to search for. In regex mode this must be valid JavaScript RegExp syntax (no Python/PCRE inline flags such as (?s) or (?i)).
Search mode. Defaults to literal. regex uses JavaScript RegExp syntax.
Optional glob filter for files to search.
Optional repo-relative subpath to scope the search to.
Whether matching should be case-sensitive.
Lines of context to include before each match.
Lines of context to include after each match.
Maximum number of matches to return before truncation.
Whether to return match content or just files with matches.
Response
Success.
Changes
No recorded changes to this operation across all 3 revisions of this API.