Skip to main content
Glama

get_file_content

Retrieve file contents from Azure DevOps repositories to access code, documentation, or configuration files stored in your projects.

Instructions

Gets the content of a file in a repository.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe path to the file.
projectYesThe name or ID of the project.
repository_idYesThe name or ID of the repository.

Implementation Reference

  • The implementation of the get_file_content handler in AzureDevOpsClient class, which calls git_client.get_item_text to retrieve the file content.
    def get_file_content(self, project, repository_id, path): return self.git_client.get_item_text( project=project, repository_id=repository_id, path=path )
  • The input schema and tool definition for get_file_content, specifying parameters project, repository_id, and path.
    types.Tool( name="get_file_content", description="Gets the content of a file in a repository.", inputSchema={ "type": "object", "properties": { "project": { "type": "string", "description": "The name or ID of the project." }, "repository_id": { "type": "string", "description": "The name or ID of the repository." }, "path": { "type": "string", "description": "The path to the file." }, }, "required": ["project", "repository_id", "path"], "additionalProperties": False } ),
  • The dispatch/registration point in _execute_tool method where get_file_content is called on the client instance.
    elif name == "get_file_content": return self.client.get_file_content(**arguments)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xrmghost/mcp-azure-devops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server