start_sleep_task
Start a background sleep task for a specified duration (up to 1 hour) and receive a task ID to poll or cancel the task. Used for delayed workflows and testing thread cancellation.
Instructions
Tier 2 PR #44 framework tracer: spawn a background task that sleeps for duration_ms then completes. Returns immediately with a task_id; poll via poll_task or cancel via cancel_task. Useful by itself for 'wait N ms and then do something' workflows; primary purpose is to exercise the FUCMCPTaskRegistry threading + cancellation paths. Hard cap on duration_ms is 1 hour.
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": {
"duration_ms": "<duration_ms>"
},
"name": "start_sleep_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration_ms | Yes | How long the task should sleep (1 to 3600000 ms / 1 hour). Required. |