Skip to main content
StudioTools gives an agent access to Studio component operations. The agent can inspect the Registry, create agents, teams, and workflows, edit Studio-created components, run them, delete them, and manage versions when enabled. Use it for builder agents that turn natural language into AgentOS components.

Prerequisites

The following example requires the openai, anthropic, ddgs, and sqlalchemy libraries.

Example

cookbook/05_agent_os/studio_tool/studio_tools_agent.py

Toolkit Params

Passing agents_list auto-enables team and workflow tools unless explicitly disabled. Passing teams_list auto-enables workflow tools unless explicitly disabled.

Toolkit Functions

Discovery tools are always available: Create, edit, delete, and run tools are exposed for enabled component types: With versions=True, the toolkit also exposes list_versions, get_version, publish_component, set_current_version, and delete_version.

Notes

  • Create operations save a published v1.
  • With versions=True, edits save as drafts until publish_component is called.
  • With versions=False, edits publish immediately.
  • StudioTools only edits Studio-created DB components. Code-defined components are discoverable and reusable, but not edited in place.
  • Use requires_confirmation_tools for destructive or state-changing functions.

Developer Resources