Skip to content

get_ai_policy

Read the AI controls a workspace, project, group or member sets itself, and what it inherits.

The controls are the Layer agent and each subagent on or off, the spend above which the agent
asks before running a job, which modalities and models may run, and per-model default
parameters. Precedence runs workspace, project, group, member; a value locked at a workspace
or project holds below it. Requires workspace settings admin (content policy author for a
project).

Parameters

ParameterTypeDefaultDescription
scoperequiredAiPolicyScopeToolInput—
workspace_idrequiredstring (uuid)—The workspace the policy belongs to.
kindrequiredenum—What the policy is attached to: the workspace itself, one of its projects, a group or a member.
One of: workspace, project, group, member
project_idstring (uuid)—The project, for kind=project.
group_idstring (uuid)—The group, for kind=group. Use list_groups to find it.
member_emailstring (email)—The member's email, for kind=member.
principal_idstring (uuid)—The member's principal id, for kind=member: a service account or API key.