Get project file
get_fileRead redacted project text after mandatory secret and private-data replacement; use a single path or batched requests for up to eight files with range or symbol selections.
Instructions
Reads selected text after mandatory secret and configured private-data replacement. Use it after get_tree or search_project; use pack_context for broad multi-file context. Use path for one page or requests for up to eight files and sixteen file/range/symbol selections; forms are exclusive. Send one batched call whenever you want more than one file, range, or known symbol: requests=[{"path":"src/a.ts","symbol":"Router.load"}]. Items report ok, partial, not-returned, or unavailable; overlapping ranges share a 1,000-line/50,000-character cap. Coordinates use returned text; start_column continues a page. Project: unique listed name, absolute path returned by list_projects, or #index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Single-file form. Exactly one of path or requests is required. Names an existing selected file; Markdown escapes from the default get_tree format are accepted, while format=text supplies literal names. | |
| branch | No | Remote Git branch; invalid for local projects. | |
| symbol | No | Reads a qualified, or file-unique simple, declaration with path instead of a range; search_project supplies names. Cannot combine with line or column fields; missing, unavailable, or non-unique declarations return DPX-MCP-INVALID-ARGUMENTS. | |
| profile | No | Selection profile: standard uses all eight exclusion toggles plus gitignore; local uses the desktop profile listed by list_projects.profiles; otherwise give a portable profile path inside the project. | |
| project | No | unique listed name, absolute path returned by list_projects, or #index. | |
| end_line | No | Last inclusive 1-based returned-text line; accepts integer or numeric string. | |
| requests | No | Batch form. Exactly one of requests or path is required. Reads up to eight files and sixteen selections; a path reads the whole file, while ranges or symbol narrow it. Single-file ranges cannot accompany requests. | |
| start_line | No | First 1-based returned-text line; accepts integer or numeric string. | |
| start_column | No | First 1-based Unicode character on start_line; use a returned continuation value. |