Update Org Actions Policy Tool
update_org_actions_policy_toolUpdate an organization Actions policy by sending only the fields you change, while replacing or preserving stored event, actor, and workflow targeting rules as needed.
Instructions
Change an organization Actions policy; only the fields given are sent.
Giving allowed_events or allowed_actors REPLACES the policy's stored rules: pass every rule to keep. Omitted workflow paths keep the stored workflow targeting.
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": {
"org": "<org>",
"policy_id": "<policy_id>"
},
"name": "update_org_actions_policy_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | Organization name | |
| name | No | New policy name | |
| policy_id | Yes | Policy ID | |
| enforcement | No | disabled, active or evaluate | |
| allowed_actors | No | Actors ({id, type}) that may trigger them | |
| allowed_events | No | Events that may trigger the targeted workflows | |
| workflow_path_exclude | No | Workflow file paths or globs to skip | |
| workflow_path_include | No | Workflow file paths or globs | |
| repository_name_exclude | No | Repository name patterns to skip | |
| repository_name_include | No | Repository name patterns (required with any other repository_name field) | |
| repository_name_protected | No | Also match on rename protection |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||