{
  "service": "excel",
  "displayName": "Excel",
  "categories": [
    "Productivity",
    "Data"
  ],
  "authTypes": [
    "oauth2"
  ],
  "auth": [
    {
      "type": "oauth2",
      "authorizationUrl": "https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize",
      "tokenUrl": "https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token",
      "scopes": [
        "User.Read",
        "Files.ReadWrite",
        "offline_access"
      ],
      "tokenEndpointAuthMethod": "client_secret_post",
      "pkce": {
        "method": "S256"
      },
      "authorizationParams": {
        "response_mode": "query"
      },
      "clientConfigFields": [
        {
          "key": "tenant",
          "label": "Tenant",
          "inputType": "text",
          "required": true,
          "secret": false,
          "defaultValue": "common",
          "placeholder": "common",
          "description": "The Microsoft identity platform tenant segment to use, such as common, organizations, consumers, or a specific tenant ID."
        }
      ]
    }
  ],
  "homepageUrl": "https://www.microsoft.com/microsoft-365/excel",
  "actions": [
    {
      "id": "excel.add_table",
      "service": "excel",
      "name": "add_table",
      "description": "Create a new workbook table from an address range.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "worksheetId": {
            "type": "string",
            "minLength": 1,
            "description": "Worksheet name or worksheet ID."
          },
          "address": {
            "type": "string",
            "minLength": 1,
            "description": "Excel A1-style range address."
          },
          "hasHeaders": {
            "type": "boolean",
            "description": "Whether the first row of the range already contains table headers."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "address",
          "hasHeaders"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "table": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Table ID."
              },
              "name": {
                "type": "string",
                "description": "Table name."
              },
              "showHeaders": {
                "type": "boolean",
                "description": "Whether the table shows headers."
              },
              "showTotals": {
                "type": "boolean",
                "description": "Whether the table shows totals."
              },
              "style": {
                "type": "string",
                "description": "Excel table style name."
              }
            },
            "additionalProperties": true,
            "description": "Workbook table returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "table"
        ],
        "description": "Table creation response."
      }
    },
    {
      "id": "excel.add_table_column",
      "service": "excel",
      "name": "add_table_column",
      "description": "Add one column to a workbook table.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "tableId": {
            "type": "string",
            "minLength": 1,
            "description": "Table name or table ID."
          },
          "index": {
            "type": "integer",
            "minimum": 0,
            "description": "Optional zero-based insertion index."
          },
          "values": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A scalar worksheet cell value."
              }
            },
            "description": "A two-dimensional matrix of cell values or cell metadata."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "tableId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "column": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Table column ID."
              },
              "name": {
                "type": "string",
                "description": "Table column name."
              },
              "index": {
                "type": "integer",
                "description": "Zero-based column index."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              }
            },
            "additionalProperties": true,
            "description": "Workbook table column returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "column"
        ],
        "description": "Table column creation response."
      }
    },
    {
      "id": "excel.add_table_row",
      "service": "excel",
      "name": "add_table_row",
      "description": "Add one or more rows to a workbook table.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "tableId": {
            "type": "string",
            "minLength": 1,
            "description": "Table name or table ID."
          },
          "index": {
            "type": "integer",
            "minimum": 0,
            "description": "Optional zero-based insertion index."
          },
          "values": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A scalar worksheet cell value."
              }
            },
            "description": "A two-dimensional matrix of cell values or cell metadata."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "tableId",
          "values"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "row": {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer",
                "description": "Zero-based row index inside the table."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              }
            },
            "additionalProperties": true,
            "description": "Workbook table row returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "row"
        ],
        "description": "Table row creation response."
      }
    },
    {
      "id": "excel.add_worksheet",
      "service": "excel",
      "name": "add_worksheet",
      "description": "Add a new worksheet to a workbook.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Worksheet name to create."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "worksheet": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Worksheet ID."
              },
              "name": {
                "type": "string",
                "description": "Worksheet name."
              },
              "position": {
                "type": "integer",
                "description": "Zero-based worksheet position."
              },
              "visibility": {
                "type": "string",
                "description": "Worksheet visibility."
              }
            },
            "additionalProperties": true,
            "description": "Worksheet resource returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "worksheet"
        ],
        "description": "Worksheet creation response."
      }
    },
    {
      "id": "excel.apply_table_filter",
      "service": "excel",
      "name": "apply_table_filter",
      "description": "Apply a Microsoft Graph filter criteria object to one table column.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "tableId": {
            "type": "string",
            "minLength": 1,
            "description": "Table name or table ID."
          },
          "columnId": {
            "type": "string",
            "minLength": 1,
            "description": "Table column name or table column ID."
          },
          "criteria": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Filter criteria object accepted by Microsoft Graph table filters."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "tableId",
          "columnId",
          "criteria"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "const": true,
            "type": "boolean",
            "description": "Whether the Excel operation completed successfully."
          }
        },
        "additionalProperties": false,
        "required": [
          "success"
        ],
        "description": "Successful Excel mutation acknowledgement."
      }
    },
    {
      "id": "excel.apply_table_sort",
      "service": "excel",
      "name": "apply_table_sort",
      "description": "Apply a Microsoft Graph sort definition to one workbook table.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "tableId": {
            "type": "string",
            "minLength": 1,
            "description": "Table name or table ID."
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "Sort field used by Microsoft Graph workbook sorts."
            },
            "description": "Sort field definitions accepted by Microsoft Graph.",
            "minItems": 1
          },
          "matchCase": {
            "type": "boolean",
            "description": "Whether sorting should be case-sensitive."
          },
          "method": {
            "type": "string",
            "description": "Optional Graph sort method."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "tableId",
          "fields"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "const": true,
            "type": "boolean",
            "description": "Whether the Excel operation completed successfully."
          }
        },
        "additionalProperties": false,
        "required": [
          "success"
        ],
        "description": "Successful Excel mutation acknowledgement."
      }
    },
    {
      "id": "excel.clear_range",
      "service": "excel",
      "name": "clear_range",
      "description": "Clear one worksheet range.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "worksheetId": {
            "type": "string",
            "minLength": 1,
            "description": "Worksheet name or worksheet ID."
          },
          "address": {
            "type": "string",
            "minLength": 1,
            "description": "Excel A1-style range address."
          },
          "applyTo": {
            "type": "string",
            "enum": [
              "All",
              "Formats",
              "Contents"
            ],
            "description": "Optional clear mode accepted by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "worksheetId",
          "address"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "const": true,
            "type": "boolean",
            "description": "Whether the Excel operation completed successfully."
          }
        },
        "additionalProperties": false,
        "required": [
          "success"
        ],
        "description": "Successful Excel mutation acknowledgement."
      }
    },
    {
      "id": "excel.clear_table_filter",
      "service": "excel",
      "name": "clear_table_filter",
      "description": "Clear the current Microsoft Graph filter on one table column.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "tableId": {
            "type": "string",
            "minLength": 1,
            "description": "Table name or table ID."
          },
          "columnId": {
            "type": "string",
            "minLength": 1,
            "description": "Table column name or table column ID."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "tableId",
          "columnId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "const": true,
            "type": "boolean",
            "description": "Whether the Excel operation completed successfully."
          }
        },
        "additionalProperties": false,
        "required": [
          "success"
        ],
        "description": "Successful Excel mutation acknowledgement."
      }
    },
    {
      "id": "excel.convert_table_to_range",
      "service": "excel",
      "name": "convert_table_to_range",
      "description": "Convert a workbook table back into a plain worksheet range.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "tableId": {
            "type": "string",
            "minLength": 1,
            "description": "Table name or table ID."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "tableId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "range": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "A1-style address of the range."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "text": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "formulas": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "numberFormat": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              }
            },
            "additionalProperties": true,
            "description": "Workbook range returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "range"
        ],
        "description": "Table conversion response."
      }
    },
    {
      "id": "excel.create_session",
      "service": "excel",
      "name": "create_session",
      "description": "Create an Excel workbook session for subsequent workbook operations.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "persistChanges": {
            "type": "boolean",
            "description": "Whether workbook changes should persist after the session closes."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "description": "Workbook session ID."
          },
          "persistChanges": {
            "type": "boolean",
            "description": "Whether the workbook session persists changes when closed."
          }
        },
        "additionalProperties": false,
        "required": [
          "sessionId",
          "persistChanges"
        ],
        "description": "Workbook session summary."
      }
    },
    {
      "id": "excel.create_workbook",
      "service": "excel",
      "name": "create_workbook",
      "description": "Create a new .xlsx workbook file and optionally populate worksheets and data.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook path including the file name, relative to the drive root and ending with .xlsx."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "drive_id": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "worksheetData": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "A scalar worksheet cell value."
                }
              },
              "description": "A two-dimensional matrix of cell values or cell metadata."
            },
            "description": "Optional mapping of worksheet names to row data."
          },
          "worksheet_data": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "A scalar worksheet cell value."
                }
              },
              "description": "A two-dimensional matrix of cell values or cell metadata."
            },
            "description": "Alias of worksheetData."
          },
          "worksheetNames": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional worksheet names to create in order."
          },
          "worksheet_names": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "Alias of worksheetNames."
          }
        },
        "additionalProperties": false,
        "required": [
          "path"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Drive item ID."
          },
          "name": {
            "type": "string",
            "description": "Drive item name."
          },
          "webUrl": {
            "type": "string",
            "description": "Web URL for the drive item."
          },
          "createdDateTime": {
            "type": "string",
            "description": "Creation timestamp for the drive item."
          },
          "lastModifiedDateTime": {
            "type": "string",
            "description": "Last modification timestamp for the drive item."
          },
          "size": {
            "type": "integer",
            "description": "Drive item size in bytes."
          },
          "file": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "folder": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "workbook": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          },
          "parentReference": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A generic JSON object returned by Microsoft Graph."
          }
        },
        "additionalProperties": true,
        "description": "Drive item summary returned by Microsoft Graph."
      }
    },
    {
      "id": "excel.delete_table_column",
      "service": "excel",
      "name": "delete_table_column",
      "description": "Delete one column from a workbook table.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "tableId": {
            "type": "string",
            "minLength": 1,
            "description": "Table name or table ID."
          },
          "columnId": {
            "type": "string",
            "minLength": 1,
            "description": "Table column name or table column ID."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "tableId",
          "columnId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "const": true,
            "type": "boolean",
            "description": "Whether the Excel operation completed successfully."
          }
        },
        "additionalProperties": false,
        "required": [
          "success"
        ],
        "description": "Successful Excel mutation acknowledgement."
      }
    },
    {
      "id": "excel.delete_table_row",
      "service": "excel",
      "name": "delete_table_row",
      "description": "Delete one row from a workbook table by row index.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "tableId": {
            "type": "string",
            "minLength": 1,
            "description": "Table name or table ID."
          },
          "rowIndex": {
            "type": "integer",
            "minimum": 0,
            "description": "Zero-based row index to delete."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "tableId",
          "rowIndex"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "const": true,
            "type": "boolean",
            "description": "Whether the Excel operation completed successfully."
          }
        },
        "additionalProperties": false,
        "required": [
          "success"
        ],
        "description": "Successful Excel mutation acknowledgement."
      }
    },
    {
      "id": "excel.delete_worksheet",
      "service": "excel",
      "name": "delete_worksheet",
      "description": "Delete one worksheet from a workbook.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "worksheetId": {
            "type": "string",
            "minLength": 1,
            "description": "Worksheet name or worksheet ID."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "worksheetId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "const": true,
            "type": "boolean",
            "description": "Whether the Excel operation completed successfully."
          }
        },
        "additionalProperties": false,
        "required": [
          "success"
        ],
        "description": "Successful Excel mutation acknowledgement."
      }
    },
    {
      "id": "excel.get_range",
      "service": "excel",
      "name": "get_range",
      "description": "Read one worksheet range by A1-style address.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "worksheetId": {
            "type": "string",
            "minLength": 1,
            "description": "Worksheet name or worksheet ID."
          },
          "address": {
            "type": "string",
            "minLength": 1,
            "description": "Excel A1-style range address."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "worksheetId",
          "address"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "range": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "A1-style address of the range."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "text": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "formulas": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "numberFormat": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              }
            },
            "additionalProperties": true,
            "description": "Workbook range returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "range"
        ],
        "description": "Single range response."
      }
    },
    {
      "id": "excel.get_table_column",
      "service": "excel",
      "name": "get_table_column",
      "description": "Read one workbook table column by column name or column ID.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "tableId": {
            "type": "string",
            "minLength": 1,
            "description": "Table name or table ID."
          },
          "columnId": {
            "type": "string",
            "minLength": 1,
            "description": "Table column name or table column ID."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "tableId",
          "columnId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "column": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Table column ID."
              },
              "name": {
                "type": "string",
                "description": "Table column name."
              },
              "index": {
                "type": "integer",
                "description": "Zero-based column index."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              }
            },
            "additionalProperties": true,
            "description": "Workbook table column returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "column"
        ],
        "description": "Single table column response."
      }
    },
    {
      "id": "excel.get_workbook",
      "service": "excel",
      "name": "get_workbook",
      "description": "Read workbook metadata and optionally expand related workbook resources.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "expand": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional relationships to expand on the workbook resource."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "workbook": {
            "type": "object",
            "properties": {
              "worksheets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Worksheet ID."
                    },
                    "name": {
                      "type": "string",
                      "description": "Worksheet name."
                    },
                    "position": {
                      "type": "integer",
                      "description": "Zero-based worksheet position."
                    },
                    "visibility": {
                      "type": "string",
                      "description": "Worksheet visibility."
                    }
                  },
                  "additionalProperties": true,
                  "description": "Worksheet resource returned by Microsoft Graph."
                }
              },
              "tables": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "description": "A list of generic JSON objects returned by Microsoft Graph."
              }
            },
            "additionalProperties": true,
            "description": "Workbook metadata returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "workbook"
        ],
        "description": "Workbook metadata response."
      }
    },
    {
      "id": "excel.get_worksheet",
      "service": "excel",
      "name": "get_worksheet",
      "description": "Read a single worksheet by worksheet name or worksheet ID.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "worksheetId": {
            "type": "string",
            "minLength": 1,
            "description": "Worksheet name or worksheet ID."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "worksheetId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "worksheet": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Worksheet ID."
              },
              "name": {
                "type": "string",
                "description": "Worksheet name."
              },
              "position": {
                "type": "integer",
                "description": "Zero-based worksheet position."
              },
              "visibility": {
                "type": "string",
                "description": "Worksheet visibility."
              }
            },
            "additionalProperties": true,
            "description": "Worksheet resource returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "worksheet"
        ],
        "description": "Single worksheet response."
      }
    },
    {
      "id": "excel.get_worksheet_used_range",
      "service": "excel",
      "name": "get_worksheet_used_range",
      "description": "Read the used range for one worksheet.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "worksheetId": {
            "type": "string",
            "minLength": 1,
            "description": "Worksheet name or worksheet ID."
          },
          "valuesOnly": {
            "type": "boolean",
            "description": "Whether to ignore formatting-only cells in the used range."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "worksheetId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "range": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "A1-style address of the range."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "text": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "formulas": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "numberFormat": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              }
            },
            "additionalProperties": true,
            "description": "Workbook range returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "range"
        ],
        "description": "Worksheet used range response."
      }
    },
    {
      "id": "excel.insert_range",
      "service": "excel",
      "name": "insert_range",
      "description": "Insert one worksheet range and shift existing cells to make space.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "worksheetId": {
            "type": "string",
            "minLength": 1,
            "description": "Worksheet name or worksheet ID."
          },
          "address": {
            "type": "string",
            "minLength": 1,
            "description": "Excel A1-style range address."
          },
          "shift": {
            "type": "string",
            "enum": [
              "Down",
              "Right"
            ],
            "description": "Direction used when inserting the range."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "worksheetId",
          "address",
          "shift"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "range": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "A1-style address of the range."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "text": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "formulas": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "numberFormat": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              }
            },
            "additionalProperties": true,
            "description": "Workbook range returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "range"
        ],
        "description": "Range insertion response."
      }
    },
    {
      "id": "excel.list_drive_item_children",
      "service": "excel",
      "name": "list_drive_item_children",
      "description": "List direct child drive items for a folder or the drive root.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "top": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "description": "Maximum number of items to return."
          },
          "select": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional Microsoft Graph fields to include in the response.",
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Drive item ID."
                },
                "name": {
                  "type": "string",
                  "description": "Drive item name."
                },
                "webUrl": {
                  "type": "string",
                  "description": "Web URL for the drive item."
                },
                "createdDateTime": {
                  "type": "string",
                  "description": "Creation timestamp for the drive item."
                },
                "lastModifiedDateTime": {
                  "type": "string",
                  "description": "Last modification timestamp for the drive item."
                },
                "size": {
                  "type": "integer",
                  "description": "Drive item size in bytes."
                },
                "file": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "folder": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "workbook": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "parentReference": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                }
              },
              "additionalProperties": true,
              "description": "Drive item summary returned by Microsoft Graph."
            },
            "description": "Child drive items returned by Microsoft Graph."
          },
          "nextLink": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque Microsoft Graph nextLink for fetching the next page."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "items",
          "nextLink"
        ],
        "description": "Drive item children response."
      }
    },
    {
      "id": "excel.list_table_columns",
      "service": "excel",
      "name": "list_table_columns",
      "description": "List columns for one workbook table.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "tableId": {
            "type": "string",
            "minLength": 1,
            "description": "Table name or table ID."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "tableId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "columns": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Table column ID."
                },
                "name": {
                  "type": "string",
                  "description": "Table column name."
                },
                "index": {
                  "type": "integer",
                  "description": "Zero-based column index."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "A scalar worksheet cell value."
                    }
                  },
                  "description": "A two-dimensional matrix of cell values or cell metadata."
                }
              },
              "additionalProperties": true,
              "description": "Workbook table column returned by Microsoft Graph."
            },
            "description": "Table columns returned by Microsoft Graph."
          },
          "nextLink": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque Microsoft Graph nextLink for fetching the next page."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "columns",
          "nextLink"
        ],
        "description": "Table column list response."
      }
    },
    {
      "id": "excel.list_table_rows",
      "service": "excel",
      "name": "list_table_rows",
      "description": "List rows for one workbook table.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "tableId": {
            "type": "string",
            "minLength": 1,
            "description": "Table name or table ID."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "tableId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "index": {
                  "type": "integer",
                  "description": "Zero-based row index inside the table."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "A scalar worksheet cell value."
                    }
                  },
                  "description": "A two-dimensional matrix of cell values or cell metadata."
                }
              },
              "additionalProperties": true,
              "description": "Workbook table row returned by Microsoft Graph."
            },
            "description": "Table rows returned by Microsoft Graph."
          },
          "nextLink": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque Microsoft Graph nextLink for fetching the next page."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "rows",
          "nextLink"
        ],
        "description": "Table row list response."
      }
    },
    {
      "id": "excel.list_tables",
      "service": "excel",
      "name": "list_tables",
      "description": "List workbook tables, optionally restricted to one worksheet.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "worksheetId": {
            "type": "string",
            "minLength": 1,
            "description": "Worksheet name or worksheet ID."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "tables": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Table ID."
                },
                "name": {
                  "type": "string",
                  "description": "Table name."
                },
                "showHeaders": {
                  "type": "boolean",
                  "description": "Whether the table shows headers."
                },
                "showTotals": {
                  "type": "boolean",
                  "description": "Whether the table shows totals."
                },
                "style": {
                  "type": "string",
                  "description": "Excel table style name."
                }
              },
              "additionalProperties": true,
              "description": "Workbook table returned by Microsoft Graph."
            },
            "description": "Tables returned by Microsoft Graph."
          },
          "nextLink": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque Microsoft Graph nextLink for fetching the next page."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "tables",
          "nextLink"
        ],
        "description": "Table list response."
      }
    },
    {
      "id": "excel.list_worksheets",
      "service": "excel",
      "name": "list_worksheets",
      "description": "List worksheets in a workbook.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId"
        ],
        "description": "Input payload for listing workbook worksheets."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "worksheets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Worksheet ID."
                },
                "name": {
                  "type": "string",
                  "description": "Worksheet name."
                },
                "position": {
                  "type": "integer",
                  "description": "Zero-based worksheet position."
                },
                "visibility": {
                  "type": "string",
                  "description": "Worksheet visibility."
                }
              },
              "additionalProperties": true,
              "description": "Worksheet resource returned by Microsoft Graph."
            },
            "description": "Worksheets returned by Microsoft Graph."
          },
          "nextLink": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque Microsoft Graph nextLink for fetching the next page."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "worksheets",
          "nextLink"
        ],
        "description": "Worksheet list response."
      }
    },
    {
      "id": "excel.merge_cells",
      "service": "excel",
      "name": "merge_cells",
      "description": "Merge cells inside one worksheet range.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "worksheetId": {
            "type": "string",
            "minLength": 1,
            "description": "Worksheet name or worksheet ID."
          },
          "address": {
            "type": "string",
            "minLength": 1,
            "description": "Excel A1-style range address."
          },
          "across": {
            "type": "boolean",
            "description": "Whether each row in the range should merge separately."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "worksheetId",
          "address"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "const": true,
            "type": "boolean",
            "description": "Whether the Excel operation completed successfully."
          }
        },
        "additionalProperties": false,
        "required": [
          "success"
        ],
        "description": "Successful Excel mutation acknowledgement."
      }
    },
    {
      "id": "excel.search_files",
      "service": "excel",
      "name": "search_files",
      "description": "Search workbook files in the current OneDrive drive and return matching drive items.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "Search query used to find workbook files."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "top": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "description": "Maximum number of items to return."
          },
          "fileExtensions": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional file extensions used to filter search results."
          }
        },
        "additionalProperties": false,
        "required": [
          "query"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Drive item ID."
                },
                "name": {
                  "type": "string",
                  "description": "Drive item name."
                },
                "webUrl": {
                  "type": "string",
                  "description": "Web URL for the drive item."
                },
                "createdDateTime": {
                  "type": "string",
                  "description": "Creation timestamp for the drive item."
                },
                "lastModifiedDateTime": {
                  "type": "string",
                  "description": "Last modification timestamp for the drive item."
                },
                "size": {
                  "type": "integer",
                  "description": "Drive item size in bytes."
                },
                "file": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "folder": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "workbook": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                },
                "parentReference": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A generic JSON object returned by Microsoft Graph."
                }
              },
              "additionalProperties": true,
              "description": "Drive item summary returned by Microsoft Graph."
            },
            "description": "Matching drive items returned by the search."
          },
          "nextLink": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque Microsoft Graph nextLink for fetching the next page."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "items",
          "nextLink"
        ],
        "description": "Workbook file search result."
      }
    },
    {
      "id": "excel.sort_range",
      "service": "excel",
      "name": "sort_range",
      "description": "Apply a Microsoft Graph sort definition to one worksheet range.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "worksheetId": {
            "type": "string",
            "minLength": 1,
            "description": "Worksheet name or worksheet ID."
          },
          "address": {
            "type": "string",
            "minLength": 1,
            "description": "Excel A1-style range address."
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "Sort field used by Microsoft Graph workbook sorts."
            },
            "description": "Sort field definitions accepted by Microsoft Graph.",
            "minItems": 1
          },
          "matchCase": {
            "type": "boolean",
            "description": "Whether sorting should be case-sensitive."
          },
          "hasHeaders": {
            "type": "boolean",
            "description": "Whether the range contains a header row."
          },
          "orientation": {
            "type": "string",
            "description": "Optional Graph sort orientation."
          },
          "method": {
            "type": "string",
            "description": "Optional Graph sort method."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "worksheetId",
          "address",
          "fields"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "const": true,
            "type": "boolean",
            "description": "Whether the Excel operation completed successfully."
          }
        },
        "additionalProperties": false,
        "required": [
          "success"
        ],
        "description": "Successful Excel mutation acknowledgement."
      }
    },
    {
      "id": "excel.update_range",
      "service": "excel",
      "name": "update_range",
      "description": "Update one worksheet range with values, formulas, formats, or visibility flags.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "worksheetId": {
            "type": "string",
            "minLength": 1,
            "description": "Worksheet name or worksheet ID."
          },
          "address": {
            "type": "string",
            "minLength": 1,
            "description": "Excel A1-style range address."
          },
          "values": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A scalar worksheet cell value."
              }
            },
            "description": "A two-dimensional matrix of cell values or cell metadata."
          },
          "formulas": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A scalar worksheet cell value."
              }
            },
            "description": "A two-dimensional matrix of cell values or cell metadata."
          },
          "formulasLocal": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A scalar worksheet cell value."
              }
            },
            "description": "A two-dimensional matrix of cell values or cell metadata."
          },
          "formulasR1C1": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A scalar worksheet cell value."
              }
            },
            "description": "A two-dimensional matrix of cell values or cell metadata."
          },
          "numberFormat": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A scalar worksheet cell value."
              }
            },
            "description": "A two-dimensional matrix of cell values or cell metadata."
          },
          "rowHidden": {
            "type": "boolean",
            "description": "Whether rows in the range should be hidden."
          },
          "columnHidden": {
            "type": "boolean",
            "description": "Whether columns in the range should be hidden."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "worksheetId",
          "address"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "range": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "A1-style address of the range."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "text": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "formulas": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              },
              "numberFormat": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A scalar worksheet cell value."
                  }
                },
                "description": "A two-dimensional matrix of cell values or cell metadata."
              }
            },
            "additionalProperties": true,
            "description": "Workbook range returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "range"
        ],
        "description": "Range update response."
      }
    },
    {
      "id": "excel.update_table",
      "service": "excel",
      "name": "update_table",
      "description": "Update table metadata such as the name, style, or header flags.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "tableId": {
            "type": "string",
            "minLength": 1,
            "description": "Table name or table ID."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Updated table name."
          },
          "style": {
            "type": "string",
            "minLength": 1,
            "description": "Updated Excel table style."
          },
          "showTotals": {
            "type": "boolean",
            "description": "Whether the table shows totals."
          },
          "showHeaders": {
            "type": "boolean",
            "description": "Whether the table shows headers."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "tableId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "table": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Table ID."
              },
              "name": {
                "type": "string",
                "description": "Table name."
              },
              "showHeaders": {
                "type": "boolean",
                "description": "Whether the table shows headers."
              },
              "showTotals": {
                "type": "boolean",
                "description": "Whether the table shows totals."
              },
              "style": {
                "type": "string",
                "description": "Excel table style name."
              }
            },
            "additionalProperties": true,
            "description": "Workbook table returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "table"
        ],
        "description": "Table update response."
      }
    },
    {
      "id": "excel.update_worksheet",
      "service": "excel",
      "name": "update_worksheet",
      "description": "Update worksheet metadata such as the name, position, or visibility.",
      "requiredScopes": [
        "Files.ReadWrite"
      ],
      "providerPermissions": [
        "Files.ReadWrite"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "minLength": 1,
            "description": "Workbook drive item ID."
          },
          "driveId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional drive ID. Leave empty to use the current user's default OneDrive."
          },
          "sessionId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional workbook session ID created by create_session."
          },
          "worksheetId": {
            "type": "string",
            "minLength": 1,
            "description": "Worksheet name or worksheet ID."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Updated worksheet name."
          },
          "position": {
            "type": "integer",
            "minimum": 0,
            "description": "Updated zero-based worksheet position."
          },
          "visibility": {
            "type": "string",
            "enum": [
              "Visible",
              "Hidden",
              "VeryHidden"
            ],
            "description": "Updated worksheet visibility."
          }
        },
        "additionalProperties": false,
        "required": [
          "itemId",
          "worksheetId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "worksheet": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Worksheet ID."
              },
              "name": {
                "type": "string",
                "description": "Worksheet name."
              },
              "position": {
                "type": "integer",
                "description": "Zero-based worksheet position."
              },
              "visibility": {
                "type": "string",
                "description": "Worksheet visibility."
              }
            },
            "additionalProperties": true,
            "description": "Worksheet resource returned by Microsoft Graph."
          }
        },
        "additionalProperties": false,
        "required": [
          "worksheet"
        ],
        "description": "Worksheet update response."
      }
    }
  ]
}
