Retrievers

JSON Document Search

Tool that allows searching within JSON documents using text search or pandas query expressions.

Category: Retrievers · Plans: Trial, Starter, Pro, Premium, Enterprise · Type: JSONDocument

Inputs#

FieldTypeRequiredDefaultWhat it does
JSON File URLTextNo(empty)The JSON file to load from URL.
JSON Document IDTextNo(empty)The ID of the JSON document to search in.
JSON Array KeyTextNo(empty)The key in the JSON object that contains the array of objects to search.
Search QueryTextNo{input}The search term to look for in the JSON document.
Search ColumnTextNo(empty)Optional column name to restrict search to a specific column.
Query ExpressionTextNo(empty)Pandas query expression (e.g., ‘Price > 100 and Category == “Electronics”’). If provided, this will be used instead of the simple text search.
Search ColumnsTextNo(empty)Specific columns to search in (comma-separated). If empty, all columns will be searched.
Max ResultsNumberYes5000Maximum number of results to return.
Case SensitiveYes/NoNoOffWhether the search should be case sensitive.
Sort ByTextNo(empty)Column(s) to sort by. For multiple columns, separate with commas. Add a minus sign (-) before column name for descending order. Example: ‘Price,-Date’
Group ByTextNo(empty)Column(s) to group by. For multiple columns, separate with commas. Must be used with Aggregate Function.
Aggregate FunctionTextNo(empty)Aggregation function(s) when using Group By. Format: ‘column:function’. Supported: sum, mean, min, max, count, median. Example: ‘Price:mean,Quantity:sum’
Pivot TableTextNo(empty)Create a pivot table. Format: ‘index,columns,values[:agg_func]’. Example: ‘Category,Region,Price:mean’
Add Calculated ColumnTextNo(empty)Add a calculated column. Format: ’new_column_name:expression’. Example: ‘Discount:Price*0.1’
String FilterTextNo(empty)Advanced string filtering with regex. Format: ‘column:pattern[:case_sensitive]’. Example: ‘Description:premium|luxury:false’
Cache TTLTextNo2 weeksCache the content of the JSON file for defined amount of time. Options: No cache, 5 minutes, 30 minutes, 1 hour, 12 hours, 1 day, 1 week, 2 weeks, 1 month, 3 months, 6 months, 1 year

Outputs#

OutputType
Row CountAny
Column CountAny
ColumnsAny
Matched RowsAny
Search ResultsAny
Operations AppliedAny

Use as an agent tool#

Tool name: jsondocument

Tool that allows searching within JSON documents using text search or pandas query expressions.