呼び出しで指定 import { useCopilotAction } from "@copilotkit/react-core"; // Pageのコンポーネント内 useCopilotAction({ name: "weatherTool", description: "Get the weather for a given location.", available: "frontend", parameters: [{ name: "location", type: "string", required: true }], // WeatherCardのコンポーネントを返す render: ({ args, result, status }) => <WeatherCard result={result} location={args.location} status={status} /> }); https://github.com/CopilotKit/with-mastra/blob/main/src/app/page.tsx