Extract all dates from text
extract_datesFind every date/time mention in a text (max 4 KB) and return each with its character index, matched text and resolved ISO timestamps (start and optional end of ranges).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "extract_dates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| locale | No | Language of the text. en reads 03/04 as March 4; en-GB as 3 April. Default en. | |
| timezone | No | IANA time zone for reading and reporting local times, e.g. "America/Denver". Default UTC. | |
| reference | No | ISO 8601 date or date-time that relative phrases are resolved against (e.g. "2026-11-11T09:00:00-07:00"). Default: current server time. | |
| max_results | No | Stop after this many dates (default 20, max 25); truncated is true when more were found (truncated_reason "max_results"), or when the scan stopped early in number-dense text after roughly 600 numbers (truncated_reason "number_budget": later dates were not read; send the rest separately). | |
| forward_date | No | Always pick the future reading of phrases like "Friday" or "October 5". Default false (closest reading). |