download_attachment
Download uploaded files from GitLab projects using project ID, secret, and filename to retrieve attachments locally.
Instructions
Download an uploaded file from a GitLab project by secret and filename
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or URL-encoded path of the project | |
| secret | Yes | The 32-character secret of the upload | |
| filename | Yes | The filename of the upload | |
| local_path | No | Local path to save the file (optional, defaults to current directory) |
Implementation Reference
- schemas.ts:1917-1922 (schema)Input schema definition for the 'download_attachment' MCP tool, defining parameters for downloading GitLab uploads/attachments using project ID, secret, filename, and optional local save path.export const DownloadAttachmentSchema = z.object({ project_id: z.string().describe("Project ID or URL-encoded path of the project"), secret: z.string().describe("The 32-character secret of the upload"), filename: z.string().describe("The filename of the upload"), local_path: z.string().optional().describe("Local path to save the file (optional, defaults to current directory)"), });