MCPcopy Create free account
hub / github.com/arctic-cli/interface / execute

Function execute

packages/arctic/src/tool/todo.ts:11–23  ·  view source on GitHub ↗
(params, opts)

Source from the content-addressed store, hash-verified

9 todos: z.array(z.object(Todo.Info.shape)).describe("The updated todo list"),
10 }),
11 async execute(params, opts) {
12 await Todo.update({
13 sessionID: opts.sessionID,
14 todos: params.todos,
15 })
16 return {
17 title: `${params.todos.filter((x) => x.status !== "completed").length} todos`,
18 output: JSON.stringify(params.todos, null, 2),
19 metadata: {
20 todos: params.todos,
21 },
22 }
23 },
24})
25
26export const TodoReadTool = Tool.define("todoread", {

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected