@mcp-z/mcp-gmail
    Preparing search index...

    Function messageSearch

    • Returns {
          config: {
              description: "Search Gmail messages using structured query objects with flexible field selection.";
              inputSchema: ZodObject<
                  {
                      contentType: ZodDefault<ZodOptional<ZodEnum<{}>>>;
                      excludeThreadHistory: ZodDefault<ZodOptional<ZodBoolean>>;
                      fields: ZodOptional<ZodString>;
                      query: ZodOptional<
                          ZodType<
                              schemas.GmailQuery,
                              unknown,
                              $ZodTypeInternals<schemas.GmailQuery, unknown>,
                          >,
                      >;
                      shape: ZodDefault<ZodOptional<ZodEnum<{}>>>;
                  },
                  $strip,
              >;
              outputSchema: ZodObject<
                  {
                      result: ZodUnion<
                          readonly [
                              ZodObject<
                                  {
                                      items: ZodArray<ZodObject<{}, $strip>>;
                                      nextPageToken: ZodOptional<ZodString>;
                                      shape: ZodLiteral<"objects">;
                                      type: ZodLiteral<"success">;
                                  },
                                  $strip,
                              >,
                              ZodObject<
                                  {
                                      columns: ZodArray<ZodString>;
                                      nextPageToken: ZodOptional<ZodString>;
                                      rows: ZodArray<ZodArray<ZodUnknown>>;
                                      shape: ZodLiteral<"arrays">;
                                      type: ZodLiteral<"success">;
                                  },
                                  $strip,
                              >,
                              ZodObject<{}, $strip>,
                          ],
                      >;
                  },
                  $strip,
              >;
          };
          handler: (
              __namedParameters: {
                  contentType: "text" | "html";
                  excludeThreadHistory: boolean;
                  fields?: string;
                  query?: schemas.GmailQuery;
                  shape: "objects" | "arrays";
              },
              extra: EnrichedExtra,
          ) => Promise<
              {
                  content: { text: string; type: "text" }[];
                  structuredContent: {
                      result:
                          | {
                              items: {}[];
                              nextPageToken?: string;
                              shape: "objects";
                              type: "success";
                          }
                          | {
                              columns: string[];
                              nextPageToken?: string;
                              rows: unknown[][];
                              shape: "arrays";
                              type: "success";
                          };
                  };
              },
          >;
          name: string;
      }