# 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

| Parameter             | Type                   | Default | Description                                                                                                                              |
| --------------------- | ---------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| scoperequired         | AiPolicyScopeToolInput | —       |                                                                                                                                          |
| workspace\_idrequired | string (uuid)          | —       | The workspace the policy belongs to.                                                                                                     |
| kindrequired          | enum                   | —       | 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\_id           | string (uuid)          | —       | The project, for kind=project.                                                                                                           |
| group\_id             | string (uuid)          | —       | The group, for kind=group. Use list\_groups to find it.                                                                                  |
| member\_email         | string (email)         | —       | The member's email, for kind=member.                                                                                                     |
| principal\_id         | string (uuid)          | —       | The member's principal id, for kind=member: a service account or API key.                                                                |
