Get Available Tools • AI Agent SDK
get_available_tools: Get tools available to this agent, filtered by plan_mode if enabled.
get_available_tools
Method
</div>
Get tools available to this agent, filtered by plan_mode if enabled.
In plan_mode, only read-only tools are available to prevent modifications during the planning phase.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
agent["Agent"] -- "uses" --> tool["Tool: get_available_tools"]
tool -- "returns" --> result["Result"]
style tool fill:#189AB4,color:#fff
style agent fill:#8B0000,color:#fff
style result fill:#8B0000,color:#fffSignature
def get_available_tools() -> List[Any]Returns
ResponseField
List[Any]List of available tools
Source
View on GitHubpraisonaiagents/agent/agent.py at line 6089