set_expiry
Update a shared page's lifetime by setting expiry in hours, or null for permanent if the plan permits. Responses return the exact expiration, accounting for plan ceiling and clamping.
Instructions
Set hours-from-now expiry, or null for never. A NUMBER above the plan ceiling is shortened to it (free: 168 hours) and the response says so. null on a plan that caps page lifetime is REFUSED — 409 expiry_clamped, nothing changed — rather than quietly becoming 7 days, so a shortened page can never be reported as permanent: either resend with accept_clamp: true to take the ceiling, or tell the user the plan cannot make this link permanent. Quote expires_at_iso from the response, never the value you asked for.
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": {
"id_or_slug": "<id_or_slug>",
"expires_in_hours": "<expires_in_hours>"
},
"name": "set_expiry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_slug | Yes | ||
| accept_clamp | No | ||
| expires_in_hours | Yes |