json_get_value
Retrieve specific values from JSON files using field paths and dot notation, including nested properties and array indices. Requires file path and byte size limit, ensuring secure access within permitted directories.
Instructions
Get a specific value from a JSON file using a field path. Supports dot notation for accessing nested properties and array indices. Requires maxBytes
parameter (default 10KB). Returns the value directly, properly formatted. The path must be within allowed directories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
field | Yes | Path to the field to retrieve (e.g., "user.address.city" or "items[0].name") | |
maxBytes | Yes | Maximum bytes to read from the file. Must be a positive integer. Handler default: 10KB. | |
path | Yes | Path to the JSON file |