phabricator_repository_code_search
Search Phabricator Diffusion repository file contents by pattern to locate code or text, with optional path, branch, and commit filters.
Instructions
Search (grep) file contents within a Diffusion repository
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repository": "<repository>",
"query": "<query>"
},
"name": "phabricator_repository_code_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory path to search within (default: root) | |
| limit | No | Maximum results (max 100) | |
| query | Yes | Search query / pattern | |
| branch | No | Branch name | |
| commit | No | Commit hash or branch (default: HEAD) | |
| offset | No | Result offset for pagination | |
| repository | Yes | Repository callsign, short name, or PHID |