Skip to main content

Module file_ops

Module file_ops 

Source
Expand description

File operation tools with composable functionality.

This module provides the FileOpsTool for file discovery and listing operations, along with supporting utilities for diff previews and path helpers.

Structs§

FileOpsTool
File operations tool with multiple modes

Functions§

build_diff_preview
Build a unified diff preview between before and after content.
diff_preview_error_skip
Create a diff preview response when an error prevents diff generation.
diff_preview_size_skip
Create a diff preview response when content exceeds the size limit.
diff_preview_suppressed
Create a diff preview response when inline diffs are suppressed due to too many changes.
is_image_path
Check whether a path looks like an image file based on extension.