MCPcopy Index your code
hub / github.com/codeaashu/claude-code / call

Function call

src/tools/ScheduleCronTool/CronListTool.ts:63–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 return buildCronListPrompt(isDurableCronEnabled())
62 },
63 async call() {
64 const allTasks = await listAllCronTasks()
65 // Teammates only see their own crons; team lead (no ctx) sees all.
66 const ctx = getTeammateContext()
67 const tasks = ctx
68 ? allTasks.filter(t => t.agentId === ctx.agentId)
69 : allTasks
70 const jobs = tasks.map(t => ({
71 id: t.id,
72 cron: t.cron,
73 humanSchedule: cronToHuman(t.cron),
74 prompt: t.prompt,
75 ...(t.recurring ? { recurring: true } : {}),
76 ...(t.durable === false ? { durable: false } : {}),
77 }))
78 return { data: { jobs } }
79 },
80 mapToolResultToToolResultBlockParam(output, toolUseID) {
81 return {
82 tool_use_id: toolUseID,

Callers

nothing calls this directly

Calls 3

listAllCronTasksFunction · 0.85
getTeammateContextFunction · 0.85
cronToHumanFunction · 0.85

Tested by

no test coverage detected