The Python and TypeScript SDKs now include classes, in beta
By Steven Van ·
Developers supply their own automation methods, while the SDK handles the tool loop, browser policies and approval callback.
Developers can connect their own browser or desktop automation to Claude through new beta classes in Anthropic's Python and TypeScript SDKs.
Implement the actions, let the SDK run the loop
Developers subclass the relevant class and write one method per tool against their own automation. The SDK runs the tool loop and invokes their approval callback. For browser use, it also applies the URL and file policies they set.
The computer use class passes Claude's tool calls to the application's desktop code, covering actions such as taking screenshots, clicking and typing. The computer use documentation points to the SDK toolset guide for browser and desktop integration.