nworks_drive_download
Download files from LINE WORKS Drive to local storage or retrieve content directly. Specify output directory for file storage or get text/base64 content for smaller files.
Instructions
드라이브 파일을 다운로드합니다. User OAuth 인증 필요 (file.read scope). outputDir을 지정하면 로컬에 파일로 저장하고, 미지정 시 파일 내용을 직접 반환합니다 (텍스트는 text, 바이너리는 base64). 5MB 초과 파일은 반드시 outputDir를 지정해야 합니다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | 다운로드할 파일 ID (nworks_drive_list로 조회 가능) | |
| outputDir | No | 저장 디렉토리 (지정 시 파일로 저장, 미지정 시 내용을 직접 반환) | |
| outputName | No | 저장 파일명 (미지정 시 원본 파일명) | |
| userId | No | 대상 사용자 ID (미지정 시 me) |