datetime_add_duration
Add or subtract days, hours, minutes, or seconds to/from a datetime string. This tool computes a new datetime based on a given datetime and a duration, enabling date and time arithmetic for AI workflows.
Instructions
[datetime] Add (or subtract) a duration to a datetime.
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": {
"dt_str": "<dt_str>"
},
"name": "datetime_add_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dt_str | Yes | ||
| days | No | ||
| hours | No | ||
| minutes | No | ||
| seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |