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

    Function chartCreate

    • Returns {
          config: {
              description: "Create charts (pie, bar, column, line) from spreadsheet data ranges. Charts anchor to specific cells with optional pixel offsets. Data range should include headers. PIE charts use 2 columns (labels, values). BAR/COLUMN/LINE charts use first row as headers. Best for visualizing spreadsheet data.";
              inputSchema: ZodObject<
                  {
                      chartType: ZodEnum<
                          { BAR: "BAR"; COLUMN: "COLUMN"; LINE: "LINE"; PIE: "PIE" },
                      >;
                      dataRange: ZodString;
                      gid: ZodCoercedString<unknown>;
                      id: ZodString;
                      is3D: ZodDefault<ZodBoolean>;
                      legend: ZodDefault<
                          ZodEnum<
                              {
                                  BOTTOM: "BOTTOM";
                                  LEFT: "LEFT";
                                  NONE: "NONE";
                                  RIGHT: "RIGHT";
                                  TOP: "TOP";
                              },
                          >,
                      >;
                      position: ZodObject<
                          {
                              anchorCell: ZodString;
                              offsetX: ZodDefault<ZodNumber>;
                              offsetY: ZodDefault<ZodNumber>;
                          },
                          $strip,
                      >;
                      title: ZodOptional<ZodString>;
                  },
                  $strip,
              >;
              outputSchema: ZodObject<
                  {
                      result: ZodDiscriminatedUnion<
                          [
                              ZodObject<
                                  {
                                      anchorCell: ZodString;
                                      chartId: ZodNumber;
                                      gid: ZodString;
                                      id: ZodString;
                                      sheetTitle: ZodString;
                                      sheetUrl: ZodString;
                                      type: ZodLiteral<"success">;
                                  },
                                  $strip,
                              >,
                              ZodObject<{}, $strip>,
                          ],
                          "type",
                      >;
                  },
                  $strip,
              >;
          };
          handler: (
              __namedParameters: {
                  chartType: "PIE" | "BAR" | "COLUMN" | "LINE";
                  dataRange: string;
                  gid: string;
                  id: string;
                  is3D: boolean;
                  legend: "LEFT" | "RIGHT" | "BOTTOM" | "TOP" | "NONE";
                  position: { anchorCell: string; offsetX: number; offsetY: number };
                  title?: string;
              },
              extra: EnrichedExtra,
          ) => Promise<{ [key: string]: unknown }>;
          name: string;
      }