xmp4_view
Read a raw file excerpt from an indexed project by line range. Use after xmp4_search/xmp4_outline locates the region of interest, or to expand a truncated xmp4_source snippet. Hard cap of 500 lines per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Project id: 'repo/project' or 'repo/project/language'. Case-insensitive prefix match. Append '/Python'|'/CSharp'|'/Java'|etc. only to disambiguate multi-language projects (e.g. 'django/Django/Python' vs 'django/Django/JavaScript'). 1 match → proceeds; N → warning lists candidates; 0 → do NOT iterate guesses, call xmp4_projects(query=...) once then retry. | |
| to_line | No | Ending line (inclusive, default from_line+49, hard cap 500 lines per call) | |
| file_path | Yes | File path inside the project, relative to repo root | |
| from_line | No | Starting line (1-based, default 1) |