task.get
Retrieve a task as JSON by ID, or fetch the session's current task when no ID is supplied; returns an error if the ID or current task is missing.
Instructions
Return one task as JSON (id, session_id, title, status, timestamps). Read-only. Without task_id it returns the session's current task; errors when the ID does not exist or there is no current task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | No | Task ID; omit for the current task |