cloudflare / cloudflare/playwright-mcp

TypeScript inference for tools?

Open
#30 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
258
Forks
50
PR merge metrics
No merged PRs in 30d

Description

What's the best way to properly infer the types for the `this.getAITools()` so I can pass them to the client?
> https://ai-sdk.dev/docs/reference/ai-sdk-core/ui-message#tooluipart
and
> https://ai-sdk.dev/docs/ai-sdk-ui/chatbot#inferuitools

I think it may be possible to add just a bit to https://github.com/cloudflare/playwright-mcp/blob/main/src/tools.ts, now that I think of it...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.