// Start a tool call
const toolId = await db.tools.start(
agentId,
"Edit",
{ file: "src/main.ts", changes: "..." }
);
// Complete the tool call
await db.tools.complete(
toolId,
"File edited successfully",
"Edited src/main.ts: added 15 lines"
);
// List tool calls for an agent
const tools = await db.tools.list(agentId);