manage_source
Read, write, delete files; list directories; view history; and search code in Bitbucket repositories.
Instructions
Unified tool for source code operations (read, list_directory, get_history, search, write, delete)
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": {
"action": "<action>",
"workspace": "<workspace>",
"repo_slug": "<repo_slug>"
},
"name": "manage_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Commit hash, branch, or tag (default: HEAD) | |
| page | No | Page number | |
| path | No | Path to the file or directory | |
| query | No | Search query | |
| action | Yes | Action to perform: 'read_file', 'list_directory', 'get_history', 'search', 'write_file', 'delete_file' | |
| author | No | Commit author in 'Name <email>' format | |
| branch | No | Branch to commit to | |
| content | No | Content to write to the file | |
| message | No | Commit message | |
| pagelen | No | Results per page | |
| max_depth | No | Maximum depth of recursion (for list_directory) | |
| repo_slug | Yes | Repository slug | |
| workspace | Yes | Workspace slug |