sample
Read n raw values at a JSONPath from a file or open document, preserving exact int64 and decimal digits, to inspect record contents.
Instructions
Read n real values at a path, exactly as they were parsed (int64 and decimal digits intact). A path that selects one container samples its children; a path that selects many nodes samples those nodes. Pass filePath for a one-call sample, or docId to reuse an open document. Use it to see what records really hold; to count or aggregate use run_query, for statistics profile, and for names and types get_schema.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | How many values to return (default 5, max 50). | |
| path | Yes | A query selecting what to sample, e.g. $.tasks or $.tasks[*].id | |
| docId | No | A docId returned by load_doc. | |
| filePath | No | File to open and sample now instead of supplying docId. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| hint | No | ||
| tool | Yes | ||
| error | No | ||
| evicted | No | ||
| structuredTruncated | No |