Skip to content

Manage tools·

list, create and hot-load new tools at runtimetools/manage_tools.py, 1 tool.

From the module docstring

Runtime tool management — add/remove/list tools on the calling agent.

tool does
manage_tools Manage the calling agent's tool registry at runtime.

manage_tools·

manage_tools(
    action: str = 'list',
    tools: Optional[str] = None,
    name: Optional[str] = None,
    code: Optional[str] = None,
    **kwargs,
) -> str

Manage the calling agent's tool registry at runtime.

Actions

  • "list": show currently registered tools
  • "add": tools='pkg:tool1,tool2' → load and register
  • "remove": name='toolname' → unregister
  • "discover": tools='package_name' → list @tool callables in that module
  • "create": code='...python source defining @tool decorated functions...' → exec and register them on this agent

source: tools/manage_tools.py:48