format_list

Function format_list 

Source
pub fn format_list(
    path: &str,
    entries: &[Value],
    total_count: usize,
    truncated: bool,
) -> String
Expand description

Format a list/directory response

Creates a consistent response format for list operations (directories, search results, etc.). This is backward compatible with the existing ListDirectoryTool output format.

ยงArguments

  • path - The path that was listed (for directories) or query context
  • entries - The list of items
  • total_count - Total number of items (before truncation)
  • truncated - Whether the list was truncated