Skip to content

Commit 2760cd5

Browse files
committed
Simplify execute method signature by removing unused extra parameter
- Remove redundant 'extra' parameter from BaseTool.execute() signature - Keep only the accessToken parameter which is what tools actually need - This makes the API cleaner and more consistent
1 parent c089193 commit 2760cd5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tools/BaseTool.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ export abstract class BaseTool<InputSchema extends ZodTypeAny> {
9393
*/
9494
protected abstract execute(
9595
_input: z.infer<InputSchema>,
96-
accessToken?: string,
97-
extra?: RequestHandlerExtra<any, any>
96+
accessToken?: string
9897
): Promise<ContentItem | unknown>;
9998

10099
/**

0 commit comments

Comments
 (0)