GitHub Copilot Train-the-Trainer
import { defineTool } from "@github/copilot-sdk";
const lookupTool = defineTool("lookup_change_request", {
description: "Read one synthetic change and calculate readiness gaps",
parameters: {
type: "object",
properties: { requestId: { type: "string" } },
required: ["requestId"],
additionalProperties: false,
},
handler: async (args) => lookupChangeRequest(changes, args),
});
The schema narrows the input. The handler still validates the request ID before it
reads the fixture.