Skip to content
Konstera
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", …).

FieldTypeRequiredDescription
repostringno
limitintegerno
default: 30 · min: 1 · max: 100
statestringno
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.

FieldTypeRequiredDescription
urlstring | nullno
repostringno
draftbooleanno
statestringyes
enum: ["open","closed","merged"]
titlestringyes
authorstring | nullno
createdAtstring | nullno
updatedAtstring | nullno
sourceBranchstring | nullno
targetBranchstring | nullno
pullRequestIdstringyes

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.