πŸ“„ 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_NAME
  • DESCRIPTION
  • PROMPT

πŸ–₯️ 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.`