Skip to main content

compact_items

Function compact_items 

Source
pub fn compact_items(items: &[Value], fields: &[&str]) -> Value
Expand description

Flatten a list of items to only include the specified fields with flattened values. Returns a JSON array. Used by MCP server for token-efficient responses.