get_task
Fetch a single task by its task ID from Habitica. Access task details including title, type, and completion status to review or update your tasks.
Instructions
Get a single task by id.
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": {
"taskId": "<taskId>"
},
"name": "get_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes |
Implementation Reference
- index.js:378-379 (handler)Handler function for the 'get_task' tool. Makes a GET request to /tasks/{taskId} and returns the task data as JSON.
get_task: async ({ taskId }) => json((await api("GET", `/tasks/${taskId}`)).data),