Skip to content

Commit b9f65e6

Browse files
authored
chore: cleanup tool defintion context interface (#1033)
these methods are not used by tools
1 parent 1746ed9 commit b9f65e6

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/tools/ToolDefinition.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,9 @@ export type Context = Readonly<{
110110
getDialog(): Dialog | undefined;
111111
clearDialog(): void;
112112
getPageById(pageId: number): Page;
113-
getPageId(page: Page): number | undefined;
114-
isPageSelected(page: Page): boolean;
115113
newPage(background?: boolean, isolatedContextName?: string): Promise<Page>;
116114
closePage(pageId: number): Promise<void>;
117115
selectPage(page: Page): void;
118-
getIsolatedContextName(page: Page): string | undefined;
119116
getElementByUid(uid: string): Promise<ElementHandle<Element>>;
120117
getAXNodeByUid(uid: string): TextSnapshotNode | undefined;
121118
emulate(options: {
@@ -126,12 +123,6 @@ export type Context = Readonly<{
126123
colorScheme?: 'dark' | 'light' | 'auto' | null;
127124
viewport?: Viewport | null;
128125
}): Promise<void>;
129-
getNetworkConditions(): string | null;
130-
getCpuThrottlingRate(): number;
131-
getGeolocation(): GeolocationOptions | null;
132-
getViewport(): Viewport | null;
133-
getUserAgent(): string | null;
134-
getColorScheme(): 'dark' | 'light' | null;
135126
saveTemporaryFile(
136127
data: Uint8Array<ArrayBufferLike>,
137128
mimeType: 'image/png' | 'image/jpeg' | 'image/webp',

0 commit comments

Comments
 (0)