attach_policy_to_agent
Attach a policy to an agent to define the rules and permissions the agent must follow when executing tasks.
Instructions
Scope a policy to a agent so the agent uses it. Verify it landed with list_agent_policies before request_publish_agent — the link lives outside the entity body, so re-reading the agent will not show it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agentId": "<agentId>",
"policyId": "<policyId>"
},
"name": "attach_policy_to_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | ||
| policyId | Yes |