Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Check Site Settings Edit Permission
SOURCEGRAPH_CHECK_SITE_SETTINGS_EDIT_PERMISSIONTool to check whether site settings can be edited through the API. Use when you need to confirm the API allows site settings edits before attempting configuration changes.
Compare Commits
SOURCEGRAPH_COMPARE_COMMITSTool to compare two commits in a repository and retrieve their file diffs. Use after confirming the repository name and commit SHAs to inspect differences.
Get Commit Details
SOURCEGRAPH_GET_COMMIT_DETAILSGet detailed information about a specific commit in a repository.
Get Current User
SOURCEGRAPH_GET_CURRENT_USERTool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.
Get File Contents
SOURCEGRAPH_GET_FILE_CONTENTSTool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.
List Repositories
SOURCEGRAPH_LIST_REPOSITORIESTool to list repositories on the Sourcegraph instance. Use when you need to paginate through all available repositories.
List Repository Files
SOURCEGRAPH_LIST_REPOSITORY_FILESList files and directories directly within a repository path at a specified revision. A missing repository, commit, or tree can yield an empty entries list.
List repository languages
SOURCEGRAPH_LIST_REPOSITORY_LANGUAGESTool to list languages used in a repository. Use when you need to determine the primary and all languages of a given repository; call after you have the repository name.