diff --git a/src/McpContext.ts b/src/McpContext.ts index 2dd6dca0d..f60afdcc1 100644 --- a/src/McpContext.ts +++ b/src/McpContext.ts @@ -261,7 +261,8 @@ export class McpContext implements Context { async getElementByUid(uid: string): Promise> { if (!this.#textSnapshot?.idToNode.size) { - throw new Error('No snapshot found. Use browser_snapshot to capture one'); + throw new Error('No snapshot found. Use take_snapshot to capture one'); + } const [snapshotId] = uid.split('_');