| seafile_list_libraries | List all accessible Seafile libraries. Returns a list of all libraries (repositories) the authenticated user has access to.
Note: This operation requires account-based authentication and may not work
with repository token authentication.
Returns:
List of Library objects containing library metadata.
|
| seafile_get_library_info | Get information about a specific library. Args:
repo_id: The unique identifier of the library.
Returns:
Library object containing detailed library metadata.
|
| seafile_list_directory | List files and folders in a directory. Args:
repo_id: The library/repository ID.
path: The directory path to list (default: root "/").
Returns:
List of DirEntry objects for files and subdirectories.
|
| seafile_create_directory | Create a new directory in a Seafile library. Args:
repo_id: The library/repository ID.
path: The full path of the directory to create.
Returns:
OperationResult indicating success or failure.
|
| seafile_read_file | 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.
|
| seafile_get_file_info | Get metadata about a file. Args:
repo_id: The library/repository ID.
path: The path to the file within the library.
Returns:
FileInfo containing file metadata including size, mtime, and MIME type.
|
| seafile_get_download_link | Get a temporary download URL for a file. The download URL is typically valid for a limited time (usually 1 hour).
Args:
repo_id: The library/repository ID.
path: The path to the file within the library.
Returns:
Temporary download URL string.
|
| seafile_write_file | Create or update a text file in Seafile. If the file exists, it will be overwritten. If it doesn't exist, it will be created.
Parent directories must exist.
Args:
repo_id: The library/repository ID.
path: The path where the file should be written.
content: The text content to write.
Returns:
OperationResult indicating success or failure.
|
| seafile_upload_file | Upload a binary file to Seafile. Use this for uploading binary files by providing the content as base64.
For text files, prefer seafile_write_file instead.
Args:
repo_id: The library/repository ID.
path: The path where the file should be uploaded.
base64_content: The file content encoded as base64.
Returns:
OperationResult indicating success or failure.
|
| seafile_delete | Delete a file or directory from Seafile. Warning: This operation is irreversible. Deleted items may be recoverable
from the library's trash for a limited time, depending on server settings.
Args:
repo_id: The library/repository ID.
path: The path to the file or directory to delete.
Returns:
OperationResult indicating success or failure.
|
| seafile_move | Move a file or directory within a Seafile library. Args:
repo_id: The library/repository ID.
src_path: The current path of the file or directory.
dst_path: The destination directory path.
Returns:
OperationResult indicating success or failure.
|
| seafile_copy | Copy a file or directory within a Seafile library. Args:
repo_id: The library/repository ID.
src_path: The path of the file or directory to copy.
dst_path: The destination directory path.
Returns:
OperationResult indicating success or failure.
|
| seafile_rename | Rename a file or directory in Seafile. Args:
repo_id: The library/repository ID.
path: The current path of the file or directory.
new_name: The new name (not a path, just the name).
Returns:
OperationResult indicating success or failure.
|
| seafile_search | Search for files by name across Seafile libraries. Searches file and folder names matching the query string.
Note: Search functionality depends on server configuration and may
not be available on all Seafile installations.
Args:
query: The search query string.
repo_id: Optional library ID to limit search scope.
Returns:
List of dictionaries containing search results with file information.
|