If you build on the browser use tool or the computer use tool, the Python and TypeScript SDKs have a class for each, in beta. Subclass it, then add one method per tool that drives your own browser or desktop automation.
You write only the part that's specific to your setup. The SDK runs the tool loop, applies the URL and file policies you set for the browser, and calls your approval callback.

