agentskit.js
ToolsIntegrations

pagerduty

PagerDuty Events API v2 — trigger / acknowledge / resolve. Optional REST oncall lookup.

import { pagerduty } from '@agentskit/tools/integrations'

const tools = pagerduty({
  routingKey: process.env.PAGERDUTY_ROUTING_KEY!,
  apiToken: process.env.PAGERDUTY_API_TOKEN, // optional — required only for pagerduty_oncall
})

#Tools

ToolPurpose
pagerduty_triggerCreate an incident with summary / source / severity. Returns dedup_key.
pagerduty_acknowledgeAcknowledge by dedup_key.
pagerduty_resolveResolve by dedup_key.
pagerduty_oncallLook up the current on-call user for a schedule. Requires apiToken.

#Severity ladder

critical · error · warning · info — matches the PagerDuty Events API enum.

#Idempotency

Pass a stable dedup_key on trigger if you want acknowledge/resolve to land on the same incident later. Without it, PagerDuty assigns one and returns it.

#Why this exists

Incident-response agents need to page humans, ack their own paging when they self-recover, and resolve when the alert clears. This wraps the v2 Events surface so the agent doesn't reach for a generic HTTP tool.

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page