Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 256" width="720" height="256" role="img" aria-labelledby="t d" fill="none"><title id="t">A file_upload call passes the SDK checks, then your confirm callback</title><desc id="d">Claude requests file_upload. The SDK checks that the action is enabled and that file_policy allows the file, then calls your confirm(context) callback. True lets Browser Use run the upload; False or an exception stops it before it runs. Either way the outcome returns to Claude.</desc><style>.s{font-family:Geist, Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif}.m{font-family:'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace}text{font-kerning:normal}@keyframes fl{to{stroke-dashoffset:-14}}@media (prefers-reduced-motion:no-preference){.fl{animation:fl 1.2s linear infinite}}</style><defs><pattern id="dots" width="16" height="16" patternUnits="userSpaceOnUse"><circle cx="8" cy="8" r="0.7" fill="#DDD8CD"/></pattern><filter id="grain" x="0" y="0" width="100%" height="100%"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" seed="7" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.05 0"/></filter><clipPath id="card"><rect x="0.5" y="0.5" width="719" height="255" rx="14"/></clipPath><marker id="ah" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M1 1.5 L9 5 L1 8.5" stroke="#5F5B53" stroke-width="1.4" fill="none" stroke-linecap="round" stroke-linejoin="round"/></marker><marker id="aho" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M1 1.5 L9 5 L1 8.5" stroke="#FE750E" stroke-width="1.4" fill="none" stroke-linecap="round" stroke-linejoin="round"/></marker><filter id="glow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="4"/></filter></defs><rect x="0.5" y="0.5" width="719" height="255" rx="14" fill="#FBFAF7"/><g clip-path="url(#card)"><rect width="720" height="256" fill="url(#dots)"/><rect width="720" height="256" filter="url(#grain)"/></g><rect x="0.5" y="0.5" width="719" height="255" rx="14" fill="none" stroke="#E6E2D9"/><path d="M15 20h10M20 15v10" stroke="#C9C3B6" stroke-width="0.75"/><path d="M695 20h10M700 15v10" stroke="#C9C3B6" stroke-width="0.75"/><path d="M15 236h10M20 231v10" stroke="#C9C3B6" stroke-width="0.75"/><path d="M695 236h10M700 231v10" stroke="#C9C3B6" stroke-width="0.75"/><text x="34.0" y="24.5" font-size="10" fill="#5F5B53" letter-spacing="0.08em" class="m">FIG 6.4</text><text x="686.0" y="24.5" font-size="10" fill="#5F5B53" text-anchor="end" letter-spacing="0.08em" class="m">CLAUDE TOOLSETS / FILE UPLOAD</text><path d="M452 98V60H46V128" stroke="#9A958A" stroke-width="1.1" fill="none" stroke-linejoin="round" stroke-dasharray="3 3"/><path d="M447 74.0l10 10M457 74.0l-10 10" stroke="#1B1A17" stroke-width="1.6" stroke-linecap="round"/><path d="M656 128H676V226H46V128" stroke="#FE750E" stroke-width="1.3" fill="none" stroke-linejoin="round"/><path d="M46 128H76" stroke="#5F5B53" stroke-width="1.1" fill="none" stroke-linejoin="round" marker-end="url(#ah)"/><circle cx="46" cy="128" r="2.5" fill="#5F5B53"/><path d="M156 128H246" stroke="#5F5B53" stroke-width="1.1" fill="none" stroke-linejoin="round" marker-end="url(#ah)"/><path d="M326 128H410" stroke="#5F5B53" stroke-width="1.1" fill="none" stroke-linejoin="round" marker-end="url(#ah)"/><rect x="490" y="125" width="80" height="6" rx="3" fill="#FE750E" fill-opacity="0.35" filter="url(#glow)"/><path d="M490 128H572" stroke="#FE750E" stroke-width="1.6" fill="none" stroke-linejoin="round" marker-end="url(#aho)"/><path class="fl" d="M490 128H566" stroke="#FBFAF7" stroke-width="1.6" fill="none" stroke-linejoin="round" stroke-dasharray="3 11"/><polygon points="118.0,112.5 159.6,136.5 118.0,160.5 76.4,136.5" stroke="#9A958A" stroke-width="0.8" stroke-dasharray="2 3"/><polygon points="86.8,132.5 118.0,150.5 118.0,154.5 86.8,136.5" fill="#F4F1EA" stroke="#5F5B53" stroke-width="0.9" stroke-linejoin="round"/><polygon points="149.2,132.5 118.0,150.5 118.0,154.5 149.2,136.5" fill="#F4F1EA" stroke="#5F5B53" stroke-width="0.9" stroke-linejoin="round"/><polygon points="118.0,114.5 149.2,132.5 118.0,150.5 86.8,132.5" fill="#FFFFFF" stroke="#5F5B53" stroke-width="0.9" stroke-linejoin="round"/><polygon points="86.8,119.5 118.0,137.5 118.0,141.5 86.8,123.5" fill="#F4F1EA" stroke="#5F5B53" stroke-width="0.9" stroke-linejoin="round"/><polygon points="149.2,119.5 118.0,137.5 118.0,141.5 149.2,123.5" fill="#F4F1EA" stroke="#5F5B53" stroke-width="0.9" stroke-linejoin="round"/><polygon points="118.0,101.5 149.2,119.5 118.0,137.5 86.8,119.5" fill="#FFFFFF" stroke="#5F5B53" stroke-width="0.9" stroke-linejoin="round"/><g transform="matrix(0.8660,0.5,-0.8660,0.5,118.0,101.5)"><path d="M7.0 9.0h22.0M7.0 16.0h16.0M7.0 23.0h19.0" stroke="#C9C3B6" stroke-width="0.9" stroke-linecap="round" vector-effect="non-scaling-stroke"/></g><polygon points="288.0,113.5 333.0,139.5 288.0,165.5 243.0,139.5" stroke="#9A958A" stroke-width="0.8" stroke-dasharray="2 3"/><polygon points="253.4,134.5 288.0,154.5 288.0,159.5 253.4,139.5" fill="#F4F1EA" stroke="#5F5B53" stroke-width="0.9" stroke-linejoin="round"/><polygon points="322.6,134.5 288.0,154.5 288.0,159.5 322.6,139.5" fill="#F4F1EA" stroke="#5F5B53" stroke-width="0.9" stroke-linejoin="round"/><polygon points="288.0,114.5 322.6,134.5 288.0,154.5 253.4,134.5" fill="#FFFFFF" stroke="#5F5B53" stroke-width="0.9" stroke-linejoin="round"/><g transform="matrix(0.8660,0.5,0,1,270.7,129.5)"><rect x="7.0" y="-33.0" width="26.0" height="28.0" rx="2" fill="#FFFFFF" stroke="#5F5B53" stroke-width="0.9" vector-effect="non-scaling-stroke"/><path d="M11.0 -24.0l2.4 2.6l4.4 -5.2" stroke="#1B1A17" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke"/><path d="M21.0 -23.5h8.0" stroke="#C9C3B6" stroke-width="0.9" stroke-linecap="round" vector-effect="non-scaling-stroke"/><path d="M11.0 -14.0l2.4 2.6l4.4 -5.2" stroke="#1B1A17" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke"/><path d="M21.0 -13.5h8.0" stroke="#C9C3B6" stroke-width="0.9" stroke-linecap="round" vector-effect="non-scaling-stroke"/></g><polygon points="452.0,105.5 497.0,131.5 452.0,157.5 407.0,131.5" stroke="#9A958A" stroke-width="0.8" stroke-dasharray="2 3"/><polygon points="417.4,124.5 452.0,144.5 452.0,151.5 417.4,131.5" fill="#F4F1EA" stroke="#5F5B53" stroke-width="0.9" stroke-linejoin="round"/><polygon points="486.6,124.5 452.0,144.5 452.0,151.5 486.6,131.5" fill="#F4F1EA" stroke="#5F5B53" stroke-width="0.9" stroke-linejoin="round"/><polygon points="452.0,104.5 486.6,124.5 452.0,144.5 417.4,124.5" fill="#FFFFFF" stroke="#5F5B53" stroke-width="0.9" stroke-linejoin="round"/><g transform="matrix(0.8660,0.5,-0.8660,0.5,452.0,104.5)"><rect x="7.0" y="13.0" width="26.0" height="14.0" rx="7.0" fill="#F4F1EA" stroke="#5F5B53" stroke-width="0.9" vector-effect="non-scaling-stroke"/></g><path d="M450.9 127.5v-5.0a6.3 3.6 0 0 0 12.7 0v5.0a6.3 3.6 0 0 1 -12.7 0z" fill="#F4F1EA" stroke="#5F5B53" stroke-width="0.9"/><ellipse cx="457.2" cy="122.5" rx="6.3" ry="3.6" fill="#FFFFFF" stroke="#1B1A17" stroke-width="1"/><polygon points="591.4,129.7 643.8,159.9 628.2,168.9 575.9,138.6" stroke="#9A958A" stroke-width="0.8" stroke-dasharray="2 3"/><g transform="matrix(0.8660,0.5,0,1,589.5,135.3)"><rect x="0" y="-40.32000000000001" width="51.52" height="40.32000000000001" rx="3" fill="#FFFFFF" stroke="#5F5B53" stroke-width="0.9" vector-effect="non-scaling-stroke"/><path d="M0 -32.480000000000004H51.52" stroke="#C9C3B6" stroke-width="0.8" vector-effect="non-scaling-stroke"/><circle cx="4.48" cy="-36.400000000000006" r="1.2320000000000002" fill="#FE750E"/><circle cx="8.4" cy="-36.400000000000006" r="1.2320000000000002" fill="#9A958A"/><circle cx="12.32" cy="-36.400000000000006" r="1.2320000000000002" fill="#9A958A"/><rect x="6.720000000000001" y="-26.880000000000006" width="38.08" height="20.160000000000004" rx="2" stroke="#FE750E" stroke-width="0.9" stroke-dasharray="2.5 2" vector-effect="non-scaling-stroke"/></g><g transform="matrix(0.8660,0.5,0,1,595.3,131.9)"><path d="M19.040000000000003 -35.84h8.96l4.48 4.48v13.440000000000001h-13.440000000000001z" fill="#FFE6D2" stroke="#FE750E" stroke-width="1.1" stroke-linejoin="round" vector-effect="non-scaling-stroke"/><path d="M28.000000000000004 -35.84v4.48h4.48" stroke="#FE750E" stroke-width="1" stroke-linejoin="round" vector-effect="non-scaling-stroke"/><path d="M22.400000000000002 -26.880000000000003h6.720000000000001M22.400000000000002 -23.520000000000003h4.48" stroke="#FE750E" stroke-width="0.8" stroke-opacity=".7" vector-effect="non-scaling-stroke"/></g><text x="203.0" y="118.0" font-size="11" fill="#1B1A17" font-weight="500" text-anchor="middle" class="m">file_upload</text><text x="533.0" y="118.0" font-size="11" fill="#AC4808" font-weight="600" text-anchor="middle" class="m">True</text><text x="440.0" y="52.0" font-size="11" fill="#5F5B53" text-anchor="end" class="m">False or exception</text><text x="118.0" y="182.0" font-size="13" fill="#1B1A17" font-weight="600" text-anchor="middle" class="s">Claude</text><text x="288.0" y="182.0" font-size="13" fill="#1B1A17" font-weight="600" text-anchor="middle" class="s">SDK checks</text><text x="288.0" y="200.0" font-size="11" fill="#5F5B53" text-anchor="middle" class="m">enabled · file_policy</text><text x="452.0" y="182.0" font-size="13" fill="#1B1A17" font-weight="600" text-anchor="middle" class="s">Your callback</text><text x="452.0" y="200.0" font-size="11" fill="#5F5B53" text-anchor="middle" class="m">confirm(context)</text><text x="614.0" y="182.0" font-size="13" fill="#AC4808" font-weight="600" text-anchor="middle" class="s">Browser Use</text></svg>