seafile_read_file
Retrieve file content from Seafile cloud storage, returning text directly for small files or download URLs for larger or binary files.
Instructions
Read a file from Seafile.
For text files within the size limit, returns the file content directly.
For binary files or files exceeding the size limit, returns a download URL.
Args:
repo_id: The library/repository ID.
path: The path to the file within the library.
Returns:
FileContent with either text content or a download URL.Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_id | Yes | Library/repository ID | |
| path | Yes | File path within the library |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name | |
| path | Yes | File path in the library | |
| size | Yes | File size in bytes | |
| mtime | Yes | Last modification timestamp | |
| content | No | Text content (if readable) | |
| message | Yes | Status message | |
| is_binary | Yes | Whether the file is binary | |
| truncated | No | Whether content was truncated | |
| download_url | No | Temporary download URL (for binary/large files) |