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
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