Parse Duration
parse_durationParse an ISO 8601 duration string (e.g. "PT1H30M", "P1Y2M10DT2H") into its components and an approximate total in seconds (keyless, offline). Note: months=30d, years=365d for the estimate.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"duration": "PT1H30M"
},
"name": "parse_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | Yes | An ISO 8601 duration, e.g. "P1DT2H30M". |