[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-vercel-labs-ai-python-streaming-tools":3,"mdc-w6028b-key":33,"related-repo-vercel-labs-ai-python-streaming-tools":672,"related-org-vercel-labs-ai-python-streaming-tools":746},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":22,"repoUrl":23,"updatedAt":24,"license":25,"forks":26,"topics":27,"repo":28,"sourceUrl":31,"mdContent":32},"ai-python-streaming-tools","stream AI SDK Python tool outputs","Use for AI SDK for Python async-generator tools, streaming tool output, subagent tools, PartialToolCallResult events, and custom tool aggregation.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"vercel-labs","Vercel Labs","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fvercel-labs.png",[12,16,19],{"name":13,"slug":14,"type":15},"Python","python","tag",{"name":17,"slug":18,"type":15},"Agents","agents",{"name":20,"slug":21,"type":15},"AI SDK","ai-sdk",92,"https:\u002F\u002Fgithub.com\u002Fvercel-labs\u002Fai-python","2026-07-29T05:40:36.755057",null,11,[],{"repoUrl":23,"stars":22,"forks":26,"topics":29,"description":30},[],"AI SDK for Python","https:\u002F\u002Fgithub.com\u002Fvercel-labs\u002Fai-python\u002Ftree\u002FHEAD\u002Fskills\u002Fai-python-streaming-tools","---\nname: ai-python-streaming-tools\ndescription: Use for AI SDK for Python async-generator tools, streaming tool output, subagent tools, PartialToolCallResult events, and custom tool aggregation.\nmetadata:\n  sdk-version: \"0.4.0\"\n---\n\n# ai-python-streaming-tools\n\nUse async-generator tools when a tool should show progress while it runs.\n\nA streaming tool yields many values, but the agent still needs one final tool\nresult for the next model turn. The return type tells the SDK how to combine\nthose yields.\n\n## Text Chunks\n\nUse `ai.StreamingTextTool` when yielded strings should concatenate into the\nfinal tool result.\n\n```python\n@ai.tool\nasync def draft_reply(topic: str) -> ai.StreamingTextTool:\n    yield \"Checking records for \"\n    yield topic\n```\n\nThe caller sees each yield as `ai.events.PartialToolCallResult`. The model later\nsees one string: `\"Checking records for {topic}\"`.\n\n## Progress Then Result\n\nUse `ai.StreamingStatusTool[T]` when the last yielded value is the tool result.\n\n```python\n@ai.tool\nasync def ask_mothership(question: str) -> ai.StreamingStatusTool[str]:\n    yield \"connecting\"\n    yield \"transmitting\"\n    yield f\"The mothership says: {question} is under review.\"\n```\n\nThe progress values stream to the caller. The model sees only the final yielded\nvalue.\n\n## Subagents\n\nUse `ai.SubAgentTool` when a tool runs another agent and streams its events.\n\n```python\n@ai.tool\nasync def research(topic: str) -> ai.SubAgentTool:\n    researcher = ai.Agent()\n\n    messages = [\n        ai.system_message(\"Research briefly.\"),\n        ai.user_message(topic),\n    ]\n\n    async with researcher.run(model, messages) as stream:\n        async for event in stream:\n            yield event\n```\n\nThe parent caller receives nested events as `PartialToolCallResult.value`.\n\n```python\nasync with agent.run(model, messages) as stream:\n    async for event in stream:\n        if isinstance(event, ai.events.PartialToolCallResult):\n            if isinstance(event.value, ai.events.TextDelta):\n                yield event.value.chunk\n```\n\n`SubAgentTool` stores a typed `MessageBundle` as the tool result. The parent\nmodel sees the nested agent's final assistant text, not the raw bundle.\n\nWhen saving history, keep the typed message data:\n\n```python\ndata = message.model_dump(mode=\"json\")\nmessage = ai.messages.Message.model_validate(data)\n```\n\nDo not stringify `MessageBundle` or drop `result_kind`.\n\n## Custom Aggregation\n\nPrefer the aliases above. If you need custom aggregation, use either\n`@ai.tool(aggregator=...)` or an `Annotated` return type. Do not use both.\n\n```python\nfrom collections.abc import AsyncGenerator\nfrom typing import Annotated\n\nJoinedLines = Annotated[\n    AsyncGenerator[str],\n    ai.agents.Aggregate(ai.agents.ConcatAggregator, delim=\"\\n\"),\n]\n\n\n@ai.tool\nasync def outline(topic: str) -> JoinedLines:\n    yield f\"# {topic}\"\n    yield \"- first point\"\n```\n\nCustom aggregators implement `ai.events.Aggregator`.\n\n## Rules\n\n- Streaming tools must be async generators.\n- Every streaming tool needs an aggregator, usually from the return type alias.\n- Consume live output from `ai.events.PartialToolCallResult`.\n- The final aggregated value is sent back to the model as a normal tool result.\n- In custom agent loops, keep `ToolRunner` events flowing; otherwise partial\n  tool output will not reach the caller.\n",{"data":34,"body":37},{"name":4,"description":6,"metadata":35},{"sdk-version":36},"0.4.0",{"type":38,"children":39},"root",[40,47,53,58,65,79,127,148,154,166,213,218,224,236,344,356,403,422,427,450,469,475,496,604,616,622,666],{"type":41,"tag":42,"props":43,"children":44},"element","h1",{"id":4},[45],{"type":46,"value":4},"text",{"type":41,"tag":48,"props":49,"children":50},"p",{},[51],{"type":46,"value":52},"Use async-generator tools when a tool should show progress while it runs.",{"type":41,"tag":48,"props":54,"children":55},{},[56],{"type":46,"value":57},"A streaming tool yields many values, but the agent still needs one final tool\nresult for the next model turn. The return type tells the SDK how to combine\nthose yields.",{"type":41,"tag":59,"props":60,"children":62},"h2",{"id":61},"text-chunks",[63],{"type":46,"value":64},"Text Chunks",{"type":41,"tag":48,"props":66,"children":67},{},[68,70,77],{"type":46,"value":69},"Use ",{"type":41,"tag":71,"props":72,"children":74},"code",{"className":73},[],[75],{"type":46,"value":76},"ai.StreamingTextTool",{"type":46,"value":78}," when yielded strings should concatenate into the\nfinal tool result.",{"type":41,"tag":80,"props":81,"children":85},"pre",{"className":82,"code":83,"language":14,"meta":84,"style":84},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","@ai.tool\nasync def draft_reply(topic: str) -> ai.StreamingTextTool:\n    yield \"Checking records for \"\n    yield topic\n","",[86],{"type":41,"tag":71,"props":87,"children":88},{"__ignoreMap":84},[89,100,109,118],{"type":41,"tag":90,"props":91,"children":94},"span",{"class":92,"line":93},"line",1,[95],{"type":41,"tag":90,"props":96,"children":97},{},[98],{"type":46,"value":99},"@ai.tool\n",{"type":41,"tag":90,"props":101,"children":103},{"class":92,"line":102},2,[104],{"type":41,"tag":90,"props":105,"children":106},{},[107],{"type":46,"value":108},"async def draft_reply(topic: str) -> ai.StreamingTextTool:\n",{"type":41,"tag":90,"props":110,"children":112},{"class":92,"line":111},3,[113],{"type":41,"tag":90,"props":114,"children":115},{},[116],{"type":46,"value":117},"    yield \"Checking records for \"\n",{"type":41,"tag":90,"props":119,"children":121},{"class":92,"line":120},4,[122],{"type":41,"tag":90,"props":123,"children":124},{},[125],{"type":46,"value":126},"    yield topic\n",{"type":41,"tag":48,"props":128,"children":129},{},[130,132,138,140,146],{"type":46,"value":131},"The caller sees each yield as ",{"type":41,"tag":71,"props":133,"children":135},{"className":134},[],[136],{"type":46,"value":137},"ai.events.PartialToolCallResult",{"type":46,"value":139},". The model later\nsees one string: ",{"type":41,"tag":71,"props":141,"children":143},{"className":142},[],[144],{"type":46,"value":145},"\"Checking records for {topic}\"",{"type":46,"value":147},".",{"type":41,"tag":59,"props":149,"children":151},{"id":150},"progress-then-result",[152],{"type":46,"value":153},"Progress Then Result",{"type":41,"tag":48,"props":155,"children":156},{},[157,158,164],{"type":46,"value":69},{"type":41,"tag":71,"props":159,"children":161},{"className":160},[],[162],{"type":46,"value":163},"ai.StreamingStatusTool[T]",{"type":46,"value":165}," when the last yielded value is the tool result.",{"type":41,"tag":80,"props":167,"children":169},{"className":82,"code":168,"language":14,"meta":84,"style":84},"@ai.tool\nasync def ask_mothership(question: str) -> ai.StreamingStatusTool[str]:\n    yield \"connecting\"\n    yield \"transmitting\"\n    yield f\"The mothership says: {question} is under review.\"\n",[170],{"type":41,"tag":71,"props":171,"children":172},{"__ignoreMap":84},[173,180,188,196,204],{"type":41,"tag":90,"props":174,"children":175},{"class":92,"line":93},[176],{"type":41,"tag":90,"props":177,"children":178},{},[179],{"type":46,"value":99},{"type":41,"tag":90,"props":181,"children":182},{"class":92,"line":102},[183],{"type":41,"tag":90,"props":184,"children":185},{},[186],{"type":46,"value":187},"async def ask_mothership(question: str) -> ai.StreamingStatusTool[str]:\n",{"type":41,"tag":90,"props":189,"children":190},{"class":92,"line":111},[191],{"type":41,"tag":90,"props":192,"children":193},{},[194],{"type":46,"value":195},"    yield \"connecting\"\n",{"type":41,"tag":90,"props":197,"children":198},{"class":92,"line":120},[199],{"type":41,"tag":90,"props":200,"children":201},{},[202],{"type":46,"value":203},"    yield \"transmitting\"\n",{"type":41,"tag":90,"props":205,"children":207},{"class":92,"line":206},5,[208],{"type":41,"tag":90,"props":209,"children":210},{},[211],{"type":46,"value":212},"    yield f\"The mothership says: {question} is under review.\"\n",{"type":41,"tag":48,"props":214,"children":215},{},[216],{"type":46,"value":217},"The progress values stream to the caller. The model sees only the final yielded\nvalue.",{"type":41,"tag":59,"props":219,"children":221},{"id":220},"subagents",[222],{"type":46,"value":223},"Subagents",{"type":41,"tag":48,"props":225,"children":226},{},[227,228,234],{"type":46,"value":69},{"type":41,"tag":71,"props":229,"children":231},{"className":230},[],[232],{"type":46,"value":233},"ai.SubAgentTool",{"type":46,"value":235}," when a tool runs another agent and streams its events.",{"type":41,"tag":80,"props":237,"children":239},{"className":82,"code":238,"language":14,"meta":84,"style":84},"@ai.tool\nasync def research(topic: str) -> ai.SubAgentTool:\n    researcher = ai.Agent()\n\n    messages = [\n        ai.system_message(\"Research briefly.\"),\n        ai.user_message(topic),\n    ]\n\n    async with researcher.run(model, messages) as stream:\n        async for event in stream:\n            yield event\n",[240],{"type":41,"tag":71,"props":241,"children":242},{"__ignoreMap":84},[243,250,258,266,275,283,292,301,310,318,327,335],{"type":41,"tag":90,"props":244,"children":245},{"class":92,"line":93},[246],{"type":41,"tag":90,"props":247,"children":248},{},[249],{"type":46,"value":99},{"type":41,"tag":90,"props":251,"children":252},{"class":92,"line":102},[253],{"type":41,"tag":90,"props":254,"children":255},{},[256],{"type":46,"value":257},"async def research(topic: str) -> ai.SubAgentTool:\n",{"type":41,"tag":90,"props":259,"children":260},{"class":92,"line":111},[261],{"type":41,"tag":90,"props":262,"children":263},{},[264],{"type":46,"value":265},"    researcher = ai.Agent()\n",{"type":41,"tag":90,"props":267,"children":268},{"class":92,"line":120},[269],{"type":41,"tag":90,"props":270,"children":272},{"emptyLinePlaceholder":271},true,[273],{"type":46,"value":274},"\n",{"type":41,"tag":90,"props":276,"children":277},{"class":92,"line":206},[278],{"type":41,"tag":90,"props":279,"children":280},{},[281],{"type":46,"value":282},"    messages = [\n",{"type":41,"tag":90,"props":284,"children":286},{"class":92,"line":285},6,[287],{"type":41,"tag":90,"props":288,"children":289},{},[290],{"type":46,"value":291},"        ai.system_message(\"Research briefly.\"),\n",{"type":41,"tag":90,"props":293,"children":295},{"class":92,"line":294},7,[296],{"type":41,"tag":90,"props":297,"children":298},{},[299],{"type":46,"value":300},"        ai.user_message(topic),\n",{"type":41,"tag":90,"props":302,"children":304},{"class":92,"line":303},8,[305],{"type":41,"tag":90,"props":306,"children":307},{},[308],{"type":46,"value":309},"    ]\n",{"type":41,"tag":90,"props":311,"children":313},{"class":92,"line":312},9,[314],{"type":41,"tag":90,"props":315,"children":316},{"emptyLinePlaceholder":271},[317],{"type":46,"value":274},{"type":41,"tag":90,"props":319,"children":321},{"class":92,"line":320},10,[322],{"type":41,"tag":90,"props":323,"children":324},{},[325],{"type":46,"value":326},"    async with researcher.run(model, messages) as stream:\n",{"type":41,"tag":90,"props":328,"children":329},{"class":92,"line":26},[330],{"type":41,"tag":90,"props":331,"children":332},{},[333],{"type":46,"value":334},"        async for event in stream:\n",{"type":41,"tag":90,"props":336,"children":338},{"class":92,"line":337},12,[339],{"type":41,"tag":90,"props":340,"children":341},{},[342],{"type":46,"value":343},"            yield event\n",{"type":41,"tag":48,"props":345,"children":346},{},[347,349,355],{"type":46,"value":348},"The parent caller receives nested events as ",{"type":41,"tag":71,"props":350,"children":352},{"className":351},[],[353],{"type":46,"value":354},"PartialToolCallResult.value",{"type":46,"value":147},{"type":41,"tag":80,"props":357,"children":359},{"className":82,"code":358,"language":14,"meta":84,"style":84},"async with agent.run(model, messages) as stream:\n    async for event in stream:\n        if isinstance(event, ai.events.PartialToolCallResult):\n            if isinstance(event.value, ai.events.TextDelta):\n                yield event.value.chunk\n",[360],{"type":41,"tag":71,"props":361,"children":362},{"__ignoreMap":84},[363,371,379,387,395],{"type":41,"tag":90,"props":364,"children":365},{"class":92,"line":93},[366],{"type":41,"tag":90,"props":367,"children":368},{},[369],{"type":46,"value":370},"async with agent.run(model, messages) as stream:\n",{"type":41,"tag":90,"props":372,"children":373},{"class":92,"line":102},[374],{"type":41,"tag":90,"props":375,"children":376},{},[377],{"type":46,"value":378},"    async for event in stream:\n",{"type":41,"tag":90,"props":380,"children":381},{"class":92,"line":111},[382],{"type":41,"tag":90,"props":383,"children":384},{},[385],{"type":46,"value":386},"        if isinstance(event, ai.events.PartialToolCallResult):\n",{"type":41,"tag":90,"props":388,"children":389},{"class":92,"line":120},[390],{"type":41,"tag":90,"props":391,"children":392},{},[393],{"type":46,"value":394},"            if isinstance(event.value, ai.events.TextDelta):\n",{"type":41,"tag":90,"props":396,"children":397},{"class":92,"line":206},[398],{"type":41,"tag":90,"props":399,"children":400},{},[401],{"type":46,"value":402},"                yield event.value.chunk\n",{"type":41,"tag":48,"props":404,"children":405},{},[406,412,414,420],{"type":41,"tag":71,"props":407,"children":409},{"className":408},[],[410],{"type":46,"value":411},"SubAgentTool",{"type":46,"value":413}," stores a typed ",{"type":41,"tag":71,"props":415,"children":417},{"className":416},[],[418],{"type":46,"value":419},"MessageBundle",{"type":46,"value":421}," as the tool result. The parent\nmodel sees the nested agent's final assistant text, not the raw bundle.",{"type":41,"tag":48,"props":423,"children":424},{},[425],{"type":46,"value":426},"When saving history, keep the typed message data:",{"type":41,"tag":80,"props":428,"children":430},{"className":82,"code":429,"language":14,"meta":84,"style":84},"data = message.model_dump(mode=\"json\")\nmessage = ai.messages.Message.model_validate(data)\n",[431],{"type":41,"tag":71,"props":432,"children":433},{"__ignoreMap":84},[434,442],{"type":41,"tag":90,"props":435,"children":436},{"class":92,"line":93},[437],{"type":41,"tag":90,"props":438,"children":439},{},[440],{"type":46,"value":441},"data = message.model_dump(mode=\"json\")\n",{"type":41,"tag":90,"props":443,"children":444},{"class":92,"line":102},[445],{"type":41,"tag":90,"props":446,"children":447},{},[448],{"type":46,"value":449},"message = ai.messages.Message.model_validate(data)\n",{"type":41,"tag":48,"props":451,"children":452},{},[453,455,460,462,468],{"type":46,"value":454},"Do not stringify ",{"type":41,"tag":71,"props":456,"children":458},{"className":457},[],[459],{"type":46,"value":419},{"type":46,"value":461}," or drop ",{"type":41,"tag":71,"props":463,"children":465},{"className":464},[],[466],{"type":46,"value":467},"result_kind",{"type":46,"value":147},{"type":41,"tag":59,"props":470,"children":472},{"id":471},"custom-aggregation",[473],{"type":46,"value":474},"Custom Aggregation",{"type":41,"tag":48,"props":476,"children":477},{},[478,480,486,488,494],{"type":46,"value":479},"Prefer the aliases above. If you need custom aggregation, use either\n",{"type":41,"tag":71,"props":481,"children":483},{"className":482},[],[484],{"type":46,"value":485},"@ai.tool(aggregator=...)",{"type":46,"value":487}," or an ",{"type":41,"tag":71,"props":489,"children":491},{"className":490},[],[492],{"type":46,"value":493},"Annotated",{"type":46,"value":495}," return type. Do not use both.",{"type":41,"tag":80,"props":497,"children":499},{"className":82,"code":498,"language":14,"meta":84,"style":84},"from collections.abc import AsyncGenerator\nfrom typing import Annotated\n\nJoinedLines = Annotated[\n    AsyncGenerator[str],\n    ai.agents.Aggregate(ai.agents.ConcatAggregator, delim=\"\\n\"),\n]\n\n\n@ai.tool\nasync def outline(topic: str) -> JoinedLines:\n    yield f\"# {topic}\"\n    yield \"- first point\"\n",[500],{"type":41,"tag":71,"props":501,"children":502},{"__ignoreMap":84},[503,511,519,526,534,542,550,558,565,572,579,587,595],{"type":41,"tag":90,"props":504,"children":505},{"class":92,"line":93},[506],{"type":41,"tag":90,"props":507,"children":508},{},[509],{"type":46,"value":510},"from collections.abc import AsyncGenerator\n",{"type":41,"tag":90,"props":512,"children":513},{"class":92,"line":102},[514],{"type":41,"tag":90,"props":515,"children":516},{},[517],{"type":46,"value":518},"from typing import Annotated\n",{"type":41,"tag":90,"props":520,"children":521},{"class":92,"line":111},[522],{"type":41,"tag":90,"props":523,"children":524},{"emptyLinePlaceholder":271},[525],{"type":46,"value":274},{"type":41,"tag":90,"props":527,"children":528},{"class":92,"line":120},[529],{"type":41,"tag":90,"props":530,"children":531},{},[532],{"type":46,"value":533},"JoinedLines = Annotated[\n",{"type":41,"tag":90,"props":535,"children":536},{"class":92,"line":206},[537],{"type":41,"tag":90,"props":538,"children":539},{},[540],{"type":46,"value":541},"    AsyncGenerator[str],\n",{"type":41,"tag":90,"props":543,"children":544},{"class":92,"line":285},[545],{"type":41,"tag":90,"props":546,"children":547},{},[548],{"type":46,"value":549},"    ai.agents.Aggregate(ai.agents.ConcatAggregator, delim=\"\\n\"),\n",{"type":41,"tag":90,"props":551,"children":552},{"class":92,"line":294},[553],{"type":41,"tag":90,"props":554,"children":555},{},[556],{"type":46,"value":557},"]\n",{"type":41,"tag":90,"props":559,"children":560},{"class":92,"line":303},[561],{"type":41,"tag":90,"props":562,"children":563},{"emptyLinePlaceholder":271},[564],{"type":46,"value":274},{"type":41,"tag":90,"props":566,"children":567},{"class":92,"line":312},[568],{"type":41,"tag":90,"props":569,"children":570},{"emptyLinePlaceholder":271},[571],{"type":46,"value":274},{"type":41,"tag":90,"props":573,"children":574},{"class":92,"line":320},[575],{"type":41,"tag":90,"props":576,"children":577},{},[578],{"type":46,"value":99},{"type":41,"tag":90,"props":580,"children":581},{"class":92,"line":26},[582],{"type":41,"tag":90,"props":583,"children":584},{},[585],{"type":46,"value":586},"async def outline(topic: str) -> JoinedLines:\n",{"type":41,"tag":90,"props":588,"children":589},{"class":92,"line":337},[590],{"type":41,"tag":90,"props":591,"children":592},{},[593],{"type":46,"value":594},"    yield f\"# {topic}\"\n",{"type":41,"tag":90,"props":596,"children":598},{"class":92,"line":597},13,[599],{"type":41,"tag":90,"props":600,"children":601},{},[602],{"type":46,"value":603},"    yield \"- first point\"\n",{"type":41,"tag":48,"props":605,"children":606},{},[607,609,615],{"type":46,"value":608},"Custom aggregators implement ",{"type":41,"tag":71,"props":610,"children":612},{"className":611},[],[613],{"type":46,"value":614},"ai.events.Aggregator",{"type":46,"value":147},{"type":41,"tag":59,"props":617,"children":619},{"id":618},"rules",[620],{"type":46,"value":621},"Rules",{"type":41,"tag":623,"props":624,"children":625},"ul",{},[626,632,637,648,653],{"type":41,"tag":627,"props":628,"children":629},"li",{},[630],{"type":46,"value":631},"Streaming tools must be async generators.",{"type":41,"tag":627,"props":633,"children":634},{},[635],{"type":46,"value":636},"Every streaming tool needs an aggregator, usually from the return type alias.",{"type":41,"tag":627,"props":638,"children":639},{},[640,642,647],{"type":46,"value":641},"Consume live output from ",{"type":41,"tag":71,"props":643,"children":645},{"className":644},[],[646],{"type":46,"value":137},{"type":46,"value":147},{"type":41,"tag":627,"props":649,"children":650},{},[651],{"type":46,"value":652},"The final aggregated value is sent back to the model as a normal tool result.",{"type":41,"tag":627,"props":654,"children":655},{},[656,658,664],{"type":46,"value":657},"In custom agent loops, keep ",{"type":41,"tag":71,"props":659,"children":661},{"className":660},[],[662],{"type":46,"value":663},"ToolRunner",{"type":46,"value":665}," events flowing; otherwise partial\ntool output will not reach the caller.",{"type":41,"tag":667,"props":668,"children":669},"style",{},[670],{"type":46,"value":671},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":673,"total":312},[674,687,697,706,716,728,734],{"slug":675,"name":675,"fn":676,"description":677,"org":678,"tags":679,"stars":22,"repoUrl":23,"updatedAt":686},"ai-python-basics","build AI agents with Python SDK","Use for AI SDK for Python basics. Configure a model, make messages, stream, declare tools, build a basic agent.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[680,681,682,685],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":683,"slug":684,"type":15},"LLM","llm",{"name":13,"slug":14,"type":15},"2026-07-29T05:40:38.753254",{"slug":688,"name":688,"fn":689,"description":690,"org":691,"tags":692,"stars":22,"repoUrl":23,"updatedAt":696},"ai-python-custom-loop","build custom agent loops in Python","Use when building custom agent loops. Modify tool dispatch, history management, hooks, control flow.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[693,694,695],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},"2026-07-29T05:40:40.763184",{"slug":698,"name":698,"fn":699,"description":700,"org":701,"tags":702,"stars":22,"repoUrl":23,"updatedAt":705},"ai-python-custom-provider","implement custom AI SDK providers","Use for implementing custom providers in AI SDK for Python.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[703,704],{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},"2026-07-29T05:40:39.785476",{"slug":707,"name":707,"fn":708,"description":709,"org":710,"tags":711,"stars":22,"repoUrl":23,"updatedAt":715},"ai-python-durable-execution","add durable execution to AI agents","Use when adding durable execution to AI SDK for Python, building durable agent loops, or serializing messages across workflow steps.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[712,713,714],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},"2026-07-29T05:40:42.780847",{"slug":717,"name":717,"fn":718,"description":719,"org":720,"tags":721,"stars":22,"repoUrl":23,"updatedAt":727},"ai-python-serverless-execution","build serverless AI SDK endpoints","Use when building serverless AI SDK for Python endpoints, handling hook approvals, deferring hooks, or resuming runs across requests.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[722,723,724],{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"name":725,"slug":726,"type":15},"Serverless","serverless","2026-07-29T05:40:37.750244",{"slug":4,"name":4,"fn":5,"description":6,"org":729,"tags":730,"stars":22,"repoUrl":23,"updatedAt":24},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[731,732,733],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"slug":735,"name":735,"fn":736,"description":737,"org":738,"tags":739,"stars":22,"repoUrl":23,"updatedAt":745},"ai-python-subagents","implement subagent patterns in Python","Use for the subagent-as-a-tool pattern.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[740,741,744],{"name":17,"slug":18,"type":15},{"name":742,"slug":743,"type":15},"Multi-Agent","multi-agent",{"name":13,"slug":14,"type":15},"2026-07-29T05:40:35.804764",{"items":747,"total":917},[748,764,776,788,803,820,832,845,858,871,883,902],{"slug":749,"name":749,"fn":750,"description":751,"org":752,"tags":753,"stars":761,"repoUrl":762,"updatedAt":763},"agent-browser","automate browser interactions for AI agents","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[754,755,758],{"name":17,"slug":18,"type":15},{"name":756,"slug":757,"type":15},"Automation","automation",{"name":759,"slug":760,"type":15},"Browser Automation","browser-automation",38346,"https:\u002F\u002Fgithub.com\u002Fvercel-labs\u002Fagent-browser","2026-07-20T05:55:17.314329",{"slug":765,"name":765,"fn":766,"description":767,"org":768,"tags":769,"stars":761,"repoUrl":762,"updatedAt":775},"agentcore","run browser automation on AWS Bedrock","Run agent-browser on AWS Bedrock AgentCore cloud browsers. Use when the user wants to use AgentCore, run browser automation on AWS, use a cloud browser with AWS credentials, or needs a managed browser session backed by AWS infrastructure. Triggers include \"use agentcore\", \"run on AWS\", \"cloud browser with AWS\", \"bedrock browser\", \"agentcore session\", or any task requiring AWS-hosted browser automation.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[770,771,774],{"name":756,"slug":757,"type":15},{"name":772,"slug":773,"type":15},"AWS","aws",{"name":759,"slug":760,"type":15},"2026-07-17T06:08:33.665276",{"slug":777,"name":777,"fn":778,"description":779,"org":780,"tags":781,"stars":761,"repoUrl":762,"updatedAt":787},"core","navigate and interact with web pages","Core agent-browser usage guide. Read this before running any agent-browser commands. Covers the snapshot-and-ref workflow, navigating pages, interacting with elements (click, fill, type, select), extracting text and data, taking screenshots, managing tabs, handling forms and auth, waiting for content, running multiple browser sessions in parallel, and troubleshooting common failures. Use when the user asks to interact with a website, fill a form, click something, extract data, take a screenshot, log into a site, test a web app, or automate any browser task.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[782,783,784],{"name":17,"slug":18,"type":15},{"name":759,"slug":760,"type":15},{"name":785,"slug":786,"type":15},"Navigation","navigation","2026-07-26T05:47:42.378419",{"slug":789,"name":789,"fn":790,"description":791,"org":792,"tags":793,"stars":761,"repoUrl":762,"updatedAt":802},"derive-client","reverse engineer internal APIs from browser traffic","Reverse-engineer a website's internal API by recording browser traffic into a HAR file, then generate a standalone client or CLI that calls the endpoints directly, with no browser needed after the first recording. Use when asked to \"derive a client\", \"build a CLI for \u003Csite>\", \"reverse engineer this site's API\", \"record network requests\", \"turn this site into an API\", or when the same site will be automated repeatedly and direct HTTP calls would beat driving the browser every time.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[794,797,798,799],{"name":795,"slug":796,"type":15},"API Development","api-development",{"name":756,"slug":757,"type":15},{"name":759,"slug":760,"type":15},{"name":800,"slug":801,"type":15},"Web Scraping","web-scraping","2026-07-20T06:24:11.928835",{"slug":804,"name":804,"fn":805,"description":806,"org":807,"tags":808,"stars":761,"repoUrl":762,"updatedAt":819},"dogfood","perform exploratory testing on web applications","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[809,810,813,816],{"name":759,"slug":760,"type":15},{"name":811,"slug":812,"type":15},"Debugging","debugging",{"name":814,"slug":815,"type":15},"QA","qa",{"name":817,"slug":818,"type":15},"Testing","testing","2026-07-17T06:07:41.421482",{"slug":821,"name":821,"fn":822,"description":823,"org":824,"tags":825,"stars":761,"repoUrl":762,"updatedAt":831},"electron","automate Electron desktop applications","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[826,827,828],{"name":17,"slug":18,"type":15},{"name":759,"slug":760,"type":15},{"name":829,"slug":830,"type":15},"Desktop","desktop","2026-07-17T06:08:28.007783",{"slug":833,"name":833,"fn":834,"description":835,"org":836,"tags":837,"stars":761,"repoUrl":762,"updatedAt":844},"slack","interact with Slack workspaces","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[838,839,842],{"name":759,"slug":760,"type":15},{"name":840,"slug":841,"type":15},"Messaging","messaging",{"name":843,"slug":833,"type":15},"Slack","2026-07-17T06:08:27.679015",{"slug":846,"name":846,"fn":847,"description":848,"org":849,"tags":850,"stars":761,"repoUrl":762,"updatedAt":857},"vercel-sandbox","run browser automation in Vercel Sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[851,852,853,854],{"name":756,"slug":757,"type":15},{"name":759,"slug":760,"type":15},{"name":817,"slug":818,"type":15},{"name":855,"slug":856,"type":15},"Vercel","vercel","2026-07-17T06:08:28.349899",{"slug":859,"name":859,"fn":860,"description":861,"org":862,"tags":863,"stars":868,"repoUrl":869,"updatedAt":870},"deploy-to-vercel","deploy applications to Vercel","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[864,867],{"name":865,"slug":866,"type":15},"Deployment","deployment",{"name":855,"slug":856,"type":15},28993,"https:\u002F\u002Fgithub.com\u002Fvercel-labs\u002Fagent-skills","2026-07-17T06:08:41.18374",{"slug":872,"name":872,"fn":873,"description":874,"org":875,"tags":876,"stars":868,"repoUrl":869,"updatedAt":882},"vercel-cli-with-tokens","manage Vercel projects via CLI","Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. \"deploy to vercel\", \"set up vercel\", \"add environment variables to vercel\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[877,880,881],{"name":878,"slug":879,"type":15},"CLI","cli",{"name":865,"slug":866,"type":15},{"name":855,"slug":856,"type":15},"2026-07-17T06:08:41.84179",{"slug":884,"name":884,"fn":885,"description":886,"org":887,"tags":888,"stars":868,"repoUrl":869,"updatedAt":901},"vercel-composition-patterns","implement scalable React composition patterns","React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[889,892,895,898],{"name":890,"slug":891,"type":15},"Best Practices","best-practices",{"name":893,"slug":894,"type":15},"Frontend","frontend",{"name":896,"slug":897,"type":15},"React","react",{"name":899,"slug":900,"type":15},"UI Components","ui-components","2026-07-17T06:05:40.576913",{"slug":903,"name":903,"fn":904,"description":905,"org":906,"tags":907,"stars":868,"repoUrl":869,"updatedAt":916},"vercel-optimize","optimize Vercel project performance and costs","Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps. Collect Vercel metrics, usage, project config, and code scan results first; investigate only metric-backed candidates; produce ranked recommendations grounded in verified files and version-aware Vercel\u002Fframework docs. Trigger for Vercel bill reduction, slow or expensive routes, caching opportunities, Function Invocations, Build Minutes, Fast Data Transfer, Core Web Vitals, Bot Management, Fluid compute, or cost breakdown requests.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[908,911,912,915],{"name":909,"slug":910,"type":15},"Cost Optimization","cost-optimization",{"name":865,"slug":866,"type":15},{"name":913,"slug":914,"type":15},"Performance","performance",{"name":855,"slug":856,"type":15},"2026-07-17T06:04:08.327515",100]