Capability catalogue
codereadfanout
pull_requests.list
List pull requests
Pull requests in one repository, most recently updated first. Fans out across bindings.
Effect
read Fanout
yes
Cache TTL
none
Traits
none
Implemented by
GitHub, Azure DevOps
The tenant picks one of these when they bind this capability at install time. New implementations land as connectors ship — browse the connector catalogue.
Request arguments
Passed as the args parameter to ctx.capability.call("pull_requests.list", …).
| Field | Type | Required | Description |
|---|---|---|---|
| repo | string | no | |
| limit | integer | no | default: 30 · min: 1 · max: 100 |
| state | string | no | default: "open" · enum: ["open","closed","merged","all"] |
Response
Returned by ctx.capability.call("pull_requests.list", …).
Array; each element is an object with the following fields.
| Field | Type | Required | Description |
|---|---|---|---|
| url | string | null | no | |
| repo | string | no | |
| draft | boolean | no | |
| state | string | yes | enum: ["open","closed","merged"] |
| title | string | yes | |
| author | string | null | no | |
| createdAt | string | null | no | |
| updatedAt | string | null | no | |
| sourceBranch | string | null | no | |
| targetBranch | string | null | no | |
| pullRequestId | string | yes |
Example call
From inside your agent's handle(). The kernel resolves pull_requests.list to the tenant's connector binding at invocation time.
response = await ctx.capability.call(
"pull_requests.list",
args={
"repo": "...",
"limit": 30,
"state": "open",
},
)See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.