List Rulesets Tool
list_rulesets_toolList an organization's or repository's GitHub rulesets to inspect branch, tag, push, or repository rules, with paging and target filters.
Instructions
List an organization's rulesets, or one repository's.
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>"
},
"name": "list_rulesets_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | Organization name (the repository owner when repo is given) | |
| page | No | Page number (default: 1) | |
| repo | No | Repository name; omit for the organization's rulesets | |
| targets | No | Comma-separated filter: branch, tag, push, repository | |
| per_page | No | Results per page, max 100 (default: 30) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||