π File detail
tools/RemoteTriggerTool/prompt.ts
π§© .tsπ 16 linesπΎ 697 bytesπ text
β Back to All Filesπ― Use case
This module implements the βRemoteTriggerToolβ tool (Remote Trigger) β something the model can call at runtime alongside other agent tools. On the API surface it exposes REMOTE_TRIGGER_TOOL_NAME, DESCRIPTION, and PROMPT β mainly types, interfaces, or factory objects.
Generated from folder role, exports, dependency roots, and inline comments β not hand-reviewed for every path.
π§ Inline summary
export const REMOTE_TRIGGER_TOOL_NAME = 'RemoteTrigger' export const DESCRIPTION = 'Manage scheduled remote Claude Code agents (triggers) via the claude.ai CCR API. Auth is handled in-process β the token never reaches the shell.'
π€ Exports (heuristic)
REMOTE_TRIGGER_TOOL_NAMEDESCRIPTIONPROMPT
π₯οΈ Source preview
export const REMOTE_TRIGGER_TOOL_NAME = 'RemoteTrigger'
export const DESCRIPTION =
'Manage scheduled remote Claude Code agents (triggers) via the claude.ai CCR API. Auth is handled in-process β the token never reaches the shell.'
export const PROMPT = `Call the claude.ai remote-trigger API. Use this instead of curl β the OAuth token is added automatically in-process and never exposed.
Actions:
- list: GET /v1/code/triggers
- get: GET /v1/code/triggers/{trigger_id}
- create: POST /v1/code/triggers (requires body)
- update: POST /v1/code/triggers/{trigger_id} (requires body, partial update)
- run: POST /v1/code/triggers/{trigger_id}/run
The response is the raw JSON from the API.`