browse_files
Browse the file tree of a repository at a specified path and revision using Bitbucket Server MCP. Supports pagination and optional branch, tag, or commit reference.
Instructions
Browse the file tree of a repository at a given path and revision.
Args: project_key: The project key. repo_slug: The repository slug. path: Path within the repository to browse (empty for root). at: Optional branch name, tag, or commit ID (defaults to default branch). start: Page start index (default 0). limit: Number of results per page (default 25).
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": {
"project_key": "<project_key>",
"repo_slug": "<repo_slug>"
},
"name": "browse_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_key | Yes | ||
| repo_slug | Yes | ||
| path | No | ||
| at | No | ||
| start | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |