workspace_search_code
Search a source repository from an ephemeral, locked-down AI workspace on the organisation's staging cluster. Shallow-clones the repo and runs a ripgrep search for the query, returning matching file:line results. Safe in ask mode: it runs a throwaway sandbox job that self-terminates and never touches existing infrastructure. Requires a configured staging cluster (Organisation settings -> AI -> Environment) plus either application_id (clone that Application's linked repository) or repository ('owner/name' - an Application-linked repository or one of the cluster's tagged context repositories). Optional 'path' narrows the search to a subdirectory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional subdirectory (relative to the repo root) to limit the search to. | |
| query | Yes | The ripgrep pattern to search for across the repository. | |
| branch | No | Optional branch to clone. Defaults to the context tag's branch, the Application's configured branch, or the repository's default branch. | |
| repository | No | Repository to clone in 'owner/name' form. Must be an Application-linked repository or one of the cluster's tagged context repositories; anything else is rejected with the allowed list. | |
| application_id | No | The Application whose linked repository to clone and search. Provide this or 'repository'. |