read_document_chunk
Read a specific line range from a document file to avoid loading the entire content, optionally including line numbers for citation anchors.
Instructions
relative_path에 해당하는 문서 원문을 읽습니다.
긴 문서를 통째로 읽어 컨텍스트를 낭비하지 않도록 줄 범위를 지정할 수 있습니다.
Args: relative_path: 문서 상대 경로. start_line: 시작 줄(1부터). 기본 1. end_line: 끝 줄. 생략하면 끝까지. with_line_numbers: 줄 번호 접두사 부착 여부. 기본 True.
Returns:
DocumentChunkResponse: content에 본문, total_lines에 전체 줄
수, truncated에 일부만 읽었는지 여부.
Raises: ToolFailure: DOCUMENT_NOT_FOUND / INVALID_PATH. 오류 메시지에 사용 가능한 relative_path 목록이 함께 담깁니다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_line | No | 읽기를 끝낼 줄 번호. 생략하면 끝까지 읽습니다. | |
| start_line | No | 읽기 시작할 줄 번호(1부터) | |
| relative_path | Yes | list_target_documents가 돌려준 상대 경로 (예: 'research/market_research.txt') | |
| with_line_numbers | No | True면 'L14 | 내용' 형태로 줄 번호를 붙입니다. 요약 근거 칸에 인용 앵커를 적을 때 사용합니다. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stage | Yes | 폴더 분석 워크플로에서 지금 위치한 단계 | |
| status | Yes | 이 호출의 결과 상태 | |
| content | Yes | ||
| end_line | Yes | ||
| truncated | Yes | ||
| start_line | Yes | ||
| total_lines | Yes | ||
| next_actions | No | 이어서 호출하면 좋은 도구 목록 | |
| relative_path | Yes |