get_latest_documents
Fetch documents from an OpenSearch index sorted by timestamp descending. Optionally restrict results to only those within the last specified hours.
Instructions
Return newest documents sorted by a date field, optionally restricted by lookback hours.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| index | Yes | ||
| domain | Yes | ||
| region | Yes | ||
| profile | Yes | ||
| source_fields | No | ||
| lookback_hours | No | ||
| timestamp_field | No | @timestamp |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||