Skip to main content
Read the content of multiple files by their paths in a single request.

Tool details

FieldValue
Nameget_project_files
GroupFiles

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug"
    },
    "branch_id": {
      "type": "string",
      "description": "Branch ID (omit for main branch)"
    },
    "paths": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "One path item supplied to the tool."
      },
      "description": "Array of file paths to fetch"
    }
  },
  "required": [
    "project_reference",
    "paths"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Input schema for the get_project_files tool."
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "The path associated with this tool result."
          },
          "type": {
            "type": "string",
            "description": "The type associated with this tool result."
          },
          "content": {
            "type": "string",
            "description": "Source content or body returned by the tool."
          },
          "size": {
            "type": "number",
            "description": "The size associated with this tool result."
          },
          "checksum": {
            "type": [
              "string",
              "null"
            ],
            "description": "The checksum associated with this tool result."
          },
          "error": {
            "type": "string",
            "description": "Error details returned by the tool."
          }
        },
        "required": [
          "path",
          "type",
          "content",
          "size",
          "checksum"
        ],
        "additionalProperties": false,
        "description": "One file item associated with this tool result."
      },
      "description": "List of files associated with this tool result."
    }
  },
  "required": [
    "files"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the get_project_files tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}