Get Allowed Tools • AI Agent SDK
get_allowed_tools: Return the “allowed-tools“ list for a skill as a list of names.
get_allowed_tools
Method
</div>
This is a method of the SkillManager class in the manager module.
Return the `allowed-tools` list for a skill as a list of names.
Accepts either a YAML list or a whitespace-separated string (Claude Code accepts both forms). Unknown skill -> `[]`.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
agent["Agent"] -- "uses" --> tool["Tool: get_allowed_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_allowed_tools(name: str) -> List[str]Parameters
ParamField
strNo description available.
Returns
ResponseField
List[str]The result of the operation.
Uses
get_skill
Source
View on GitHubpraisonaiagents/skills/manager.py at line 512