CoAgent8
    Preparing search index...

    Function handleIssue

    • Handles the canonical issue tool execution.

      Sanitizes input to strip secrets, passwords, git diffs, and code blocks before assembling the form link and a prompt with the report to paste. When include_doctor is enabled (the default), attaches detected CLI versions only (no readiness or quota).

      Parameters

      • args: IssueToolArgs = {}

        Issue parameters including optional error message, context, and doctor flag.

      Returns Promise<
          {
              content: { text: string; type: string }[];
              structuredContent: {
                  body: string;
                  issueUrl: string;
                  pasteRequired: boolean;
                  prompt: string;
                  title: string;
              };
          },
      >

      MCP tool result with user prompt and structuredContent.