CoAgent8 - Source API
    Preparing search index...

    Function handleIssue

    • Handles the canonical issue tool execution.

      Sanitizes input to strip secrets, passwords, git diffs, and code blocks before assembling a pre-filled GitHub issue URL and preview prompt.

      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; title: string };
          },
      >

      MCP tool result with user prompt and structuredContent.