MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / execute

Method execute

src/tools/artifacts/artifact-tools.ts:400–409  ·  view source on GitHub ↗
(args: z.infer<typeof LiveStopArgs>, _ctx: ToolContext)

Source from the content-addressed store, hash-verified

398 argsSchema = LiveArgs;
399 isReadOnly = false;
400 isDestructive = false;
401
402 async execute(args: z.infer<typeof LiveArgs>, ctx: ToolContext): Promise<ToolResult> {
403 let id: string;
404 let manifest;
405 try {
406 id = resolveArtifactId(args);
407 // Validate the artifact exists up-front so the model gets a clean error, not a 500 page.
408 ({ manifest } = await getArtifact(ctx.cwd, id));
409 } catch (e: any) {
410 return { content: e?.message ?? String(e), isError: true };
411 }
412

Callers

nothing calls this directly

Calls 3

listLiveFunction · 0.85
stopAllLiveFunction · 0.85
stopLiveFunction · 0.85

Tested by

no test coverage detected