can_undo
Check if undo or redo operations are available in Lightroom Classic to verify edit reversibility before proceeding with changes.
Instructions
Check if undo/redo operations are available.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "can_undo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The implementation of the can_undo tool, which delegates to the system.can_undo function.
@mcp.tool() async def can_undo() -> dict[str, Any]: """Check if undo/redo operations are available.""" return await _call("system.can_undo")