list_siblings
Identify sibling tasks—both pending and completed—in the current task sequence to understand your position and context within a hierarchical task management system.
Instructions
See all sibling tasks to the left of current focus. May include both pending and completed tasks. Helpful for understanding your position in the current task sequence.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_body | No | Include task body content |
Implementation Reference
- src/handlers.py:198-217 (handler)The handler function that calls task_manager.list_siblings() and returns formatted list of sibling tasks with optional body inclusion.async def handle_list_siblings(self, include_body: bool = False) -> Dict[str, Any]: siblings = self.task_manager.list_siblings() return { "count": len(siblings), "siblings": [ { "id": s.id, "title": s.title, "status": s.status.value, "created_at": s.created_at.isoformat(), **({"body": s.body} if include_body else {}), **( {"completed_at": s.completed_at.isoformat()} if s.completed_at else {} ), } for s in siblings ], }
- src/handlers.py:344-357 (schema)Tool schema definition including input schema for 'include_body' parameter.Tool( name="list_siblings", description="See all sibling tasks to the left of current focus. May include both pending and completed tasks. Helpful for understanding your position in the current task sequence.", inputSchema={ "type": "object", "properties": { "include_body": { "type": "boolean", "description": "Include task body content", "default": False, } }, }, ),
- src/server.py:70-72 (registration)Registration of the list_siblings tool handler in the MCP server's call_tool handler_map."list_siblings": lambda: handlers.handle_list_siblings( arguments.get("include_body", False) ),
- src/task_manager.py:380-381 (helper)Helper method that returns the list of sibling SubTasks to the left of the current task by delegating to get_siblings_to_left().def list_siblings(self) -> List[SubTask]: return self.get_siblings_to_left()