Ancestry MCP

get_files

Retrieves complete contents of specified files from the project. The assistant tracks all previously retrieved file contents and checks this history before making new requests.

Input Schema

NameRequiredDescriptionDefault
pathsYesFile paths relative to root_path, starting with a forward slash and including the root directory name. For example, if root_path is '/home/user/projects/myproject', then a valid path would be '/myproject/src/main.py
root_pathYesRoot directory path (e.g. '/home/user/projects/myproject')

Input Schema (JSON Schema)

{ "properties": { "paths": { "description": "File paths relative to root_path, starting with a forward slash and including the root directory name. For example, if root_path is '/home/user/projects/myproject', then a valid path would be '/myproject/src/main.py", "items": { "type": "string" }, "title": "Paths", "type": "array" }, "root_path": { "description": "Root directory path (e.g. '/home/user/projects/myproject')", "format": "path", "title": "Root Path", "type": "string" } }, "required": [ "root_path", "paths" ], "title": "FilesRequest", "type": "object" }

Other Tools