INNER CODE UNIT · TypeScript

toolErrorResult

openai/codex-security · plugins/codex-security/mcp-app/server.ts:2247

function toolErrorResult(message: string) {
  return {
    content: [{ type: "text" as const, text: message }],
    isError: true,
  };
}

function buildUserInputElicitation(
  questions: z.infer<typeof userInputQuestionsSchema>,
) {
  const isSingleQuestion = questions.length === 1;
  return {
    mode: "form" as const,
    message: questions
      .map((question) =>
        [
          ...(isSingleQuestion ? [] : [question.header]),
          question.question,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…