capabilities.work

Get metadata for a repository file

One step with GitLab. We can help you get access.

Look something up

Get metadata for a repository file

with GitLab
Works with AI assistants

Use GitLab: its GitLab REST Files API lets you get metadata for a repository file in a single step (HEAD /api/v4/projects/{id}/repository/files/{file_path}). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • What are the metadata for a file in a repository?
  • Can I check a file's existence without downloading it?
Say it to your AI assistant
  • Get file {file_path} metadata in project {id}.
  • Check whether file {file_path} exists in {id} at commit {ref}.
For your developer

HEAD /api/v4/projects/{id}/repository/files/{file_path} in GitLab REST Files API. Full spec on APIs.io.