checkpoint_create
Save a snapshot of your current workspace state to preserve progress and enable rollback capabilities.
Instructions
Create a checkpoint of the current workspace state.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes |
Implementation Reference
- The checkpoint_create method in CheckpointTools that executes the tool logic: creates a checkpoint via checkpoint_manager and returns a response.async def checkpoint_create( self, request: CheckpointCreateRequest ) -> CheckpointCreateResponse: """ Create a checkpoint of the current workspace state. Args: request: CheckpointCreateRequest with name and description Returns: CheckpointCreateResponse with checkpoint info """ checkpoint_info = await self.checkpoint_manager.create_checkpoint( name=request.name, description=request.description ) return CheckpointCreateResponse( success=True, checkpoint_id=checkpoint_info.id, created_at=checkpoint_info.created_at, )
- src/chuk_mcp_vfs/server.py:156-159 (registration)Registers the checkpoint_create tool on the MCP server using @server.tool decorator, delegating to the CheckpointTools instance.async def checkpoint_create(request: CheckpointCreateRequest): """Create a checkpoint of the current workspace state.""" return await checkpoint_tools_instance.checkpoint_create(request)
- src/chuk_mcp_vfs/models.py:289-295 (schema)Input schema: Pydantic model CheckpointCreateRequest defining name (optional) and description fields.class CheckpointCreateRequest(BaseModel): """Request to create checkpoint""" name: str | None = None description: str = ""
- src/chuk_mcp_vfs/models.py:296-302 (schema)Output schema: Pydantic model CheckpointCreateResponse with success, checkpoint_id, and created_at.class CheckpointCreateResponse(BaseModel): """Response from checkpoint creation""" success: bool checkpoint_id: str created_at: datetime
- src/chuk_mcp_vfs/server.py:39-39 (registration)Instantiates the CheckpointTools instance with checkpoint_manager, used for tool delegation.checkpoint_tools_instance = CheckpointTools(checkpoint_manager)