search_documents
Searches a folder for keyword matches, returning documents with excerpt lines for citation. Handles text files only; retry with alternate phrasing if no results.
Instructions
폴더 전체에서 키워드를 검색해 관련 문서와 발췌를 돌려준다.
사용자의 질문에 답할 근거를 찾을 때 쓴다. 반환된 file과 snippet.line을 출처로 인용하라.
한계 두 가지를 알고 써라. ① 이미지 파일은 검색되지 않는다
(skipped_images 참고). ② 동의어·의미 검색이 아니라 문자열 일치다.
한 번 못 찾았다고 "문서에 없다"고 단정하지 말고 다른 표현으로 다시 찾아라.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 최대 문서 수 | |
| query | Yes | 공백으로 구분된 핵심어. 한글은 조사를 뗀 형태가 잘 걸립니다. | |
| snippet_chars | No | 발췌 한 조각의 길이 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| stage | Yes | 문서 분석 워크플로에서 지금 위치한 단계 | |
| status | Yes | 이 호출의 결과 상태 | |
| results | Yes | ||
| hit_count | Yes | ||
| next_actions | No | 이어서 호출하면 좋은 도구 목록 | |
| content_notice | Yes | ||
| searched_files | Yes | 텍스트로 검색된 파일 수 | |
| skipped_images | Yes | 검색 대상이 아니었던 이미지 파일 수 |