checkpoint_list
Lists all saved checkpoints for the current virtual filesystem workspace to track changes and restore previous states.
Instructions
List all checkpoints for the current workspace.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main handler function implementing the checkpoint_list tool logic. It fetches the list of checkpoints from the CheckpointManager and wraps it in a CheckpointListResponse.async def checkpoint_list(self) -> CheckpointListResponse: """ List all checkpoints for the current workspace. Returns: CheckpointListResponse with list of checkpoints """ checkpoints = await self.checkpoint_manager.list_checkpoints() return CheckpointListResponse(checkpoints=checkpoints)
- src/chuk_mcp_vfs/server.py:165-169 (registration)The registration of the 'checkpoint_list' tool using the @server.tool decorator in the MCP server setup. It delegates execution to the CheckpointTools instance.@server.tool async def checkpoint_list(): """List all checkpoints for the current workspace.""" return await checkpoint_tools_instance.checkpoint_list()
- src/chuk_mcp_vfs/models.py:318-322 (schema)The Pydantic schema defining the output structure of the checkpoint_list tool response, containing a list of CheckpointInfo objects.class CheckpointListResponse(BaseModel): """Response from checkpoint list""" checkpoints: list[CheckpointInfo]