Skip to content

Bug: snapshot tools fail with argument errors #4

@aazamil

Description

@aazamil

Description

The snapshot tools (snapshot_host and batch_snapshot_hosts) fail when called through Claude.

Errors

snapshot_host:
SnapshotHandler.create_snapshot() takes from 2 to 3 positional arguments but 5 were given

batch_snapshot_hosts:
SnapshotHandler.create_snapshot() got an unexpected keyword argument 'vm_name'

Root Cause

In core.py and batch.py, the snapshot functions were passing vm_name, name, and description as separate arguments directly to the handler. But the handler's create_snapshot() only accepts two arguments: a snapshot_config dict and user_id.

Workaround

Use the Ludus CLI directly:
ludus snapshots create --description "your description"

Environment

  • Ludus-FastMCP latest
  • MCP Client: Claude Desktop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions