time_diff
Calculate time differences between two dates in various units. Specify start and optional end times to get results in seconds, minutes, hours, days, or weeks.
Instructions
Calculate time difference between two dates. Defaults to now if end omitted.
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": {
"start": "<start>"
},
"name": "time_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | Yes | Start time | |
| end | No | End time (default: now) | |
| unit | No | Output unit |