{
  "schemaVersion": "1.0",
  "item": {
    "slug": "microsoft-excel",
    "name": "Microsoft Excel",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/byungkyu/microsoft-excel",
    "canonicalUrl": "https://clawhub.ai/byungkyu/microsoft-excel",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/microsoft-excel",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=microsoft-excel",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/microsoft-excel"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/microsoft-excel",
    "agentPageUrl": "https://openagent3.xyz/skills/microsoft-excel/agent",
    "manifestUrl": "https://openagent3.xyz/skills/microsoft-excel/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/microsoft-excel/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Microsoft Excel",
        "body": "Access the Microsoft Excel API (via Microsoft Graph) with managed OAuth authentication. Read and write workbooks, worksheets, ranges, tables, and charts stored in OneDrive or SharePoint."
      },
      {
        "title": "Quick Start",
        "body": "# List worksheets in a workbook\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/microsoft-excel/{native-api-path}\n\nReplace {native-api-path} with the actual Microsoft Graph API endpoint path. The gateway proxies requests to graph.microsoft.com and automatically injects your OAuth token."
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your Microsoft Excel OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=microsoft-excel&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'microsoft-excel'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"4751ac89-3970-47e1-872c-eacdf4291732\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-07T00:43:18.565932Z\",\n    \"last_updated_time\": \"2026-02-07T00:43:29.729782Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"microsoft-excel\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple Microsoft Excel connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/microsoft-excel/v1.0/me/drive')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '4751ac89-3970-47e1-872c-eacdf4291732')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "Workbook Access Patterns",
        "body": "You can access workbooks using either ID-based or path-based patterns:\n\nBy File ID:\n\n/microsoft-excel/v1.0/me/drive/items/{file-id}/workbook/...\n\nBy File Path:\n\n/microsoft-excel/v1.0/me/drive/root:/{path-to-file}:/workbook/..."
      },
      {
        "title": "Drive Operations",
        "body": "Get Drive Info\n\nGET /microsoft-excel/v1.0/me/drive\n\nList Root Files\n\nGET /microsoft-excel/v1.0/me/drive/root/children\n\nSearch for Excel Files\n\nGET /microsoft-excel/v1.0/me/drive/root/search(q='.xlsx')\n\nUpload Excel File\n\nPUT /microsoft-excel/v1.0/me/drive/root:/{filename}.xlsx:/content\nContent-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\n\n{binary xlsx content}"
      },
      {
        "title": "Session Management",
        "body": "Sessions improve performance for multiple operations. Recommended for batch operations.\n\nCreate Session\n\nPOST /microsoft-excel/v1.0/me/drive/root:/{path}:/workbook/createSession\nContent-Type: application/json\n\n{\n  \"persistChanges\": true\n}\n\nResponse:\n\n{\n  \"persistChanges\": true,\n  \"id\": \"cluster=PUS7&session=...\"\n}\n\nUse the session ID in subsequent requests:\n\nworkbook-session-id: {session-id}\n\nClose Session\n\nPOST /microsoft-excel/v1.0/me/drive/root:/{path}:/workbook/closeSession\nworkbook-session-id: {session-id}"
      },
      {
        "title": "Worksheet Operations",
        "body": "List Worksheets\n\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets\n\nResponse:\n\n{\n  \"value\": [\n    {\n      \"id\": \"{00000000-0001-0000-0000-000000000000}\",\n      \"name\": \"Sheet1\",\n      \"position\": 0,\n      \"visibility\": \"Visible\"\n    }\n  ]\n}\n\nGet Worksheet\n\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')\n\nCreate Worksheet\n\nPOST /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets\nContent-Type: application/json\n\n{\n  \"name\": \"NewSheet\"\n}\n\nUpdate Worksheet\n\nPATCH /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')\nContent-Type: application/json\n\n{\n  \"name\": \"RenamedSheet\",\n  \"position\": 2\n}\n\nDelete Worksheet\n\nDELETE /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('{worksheet-id}')\n\nReturns 204 No Content on success."
      },
      {
        "title": "Range Operations",
        "body": "Get Range\n\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/range(address='A1:B2')\n\nResponse:\n\n{\n  \"address\": \"Sheet1!A1:B2\",\n  \"values\": [\n    [\"Hello\", \"World\"],\n    [1, 2]\n  ],\n  \"formulas\": [\n    [\"Hello\", \"World\"],\n    [1, 2]\n  ],\n  \"text\": [\n    [\"Hello\", \"World\"],\n    [\"1\", \"2\"]\n  ],\n  \"numberFormat\": [\n    [\"General\", \"General\"],\n    [\"General\", \"General\"]\n  ],\n  \"rowCount\": 2,\n  \"columnCount\": 2\n}\n\nGet Used Range\n\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/usedRange\n\nUpdate Range\n\nPATCH /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/range(address='A1:B2')\nContent-Type: application/json\n\n{\n  \"values\": [\n    [\"Updated\", \"Values\"],\n    [100, 200]\n  ]\n}\n\nClear Range\n\nPOST /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/range(address='A1:B2')/clear\nContent-Type: application/json\n\n{\n  \"applyTo\": \"All\"\n}\n\nOptions: All, Formats, Contents"
      },
      {
        "title": "Table Operations",
        "body": "List Tables\n\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/tables\n\nCreate Table from Range\n\nPOST /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/tables/add\nContent-Type: application/json\n\n{\n  \"address\": \"A1:C4\",\n  \"hasHeaders\": true\n}\n\nResponse:\n\n{\n  \"id\": \"{6D182180-5F5F-448B-9E9C-377A5251CFC5}\",\n  \"name\": \"Table1\",\n  \"showHeaders\": true,\n  \"showTotals\": false,\n  \"style\": \"TableStyleMedium2\"\n}\n\nGet Table\n\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')\n\nUpdate Table\n\nPATCH /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')\nContent-Type: application/json\n\n{\n  \"name\": \"PeopleTable\",\n  \"showTotals\": true\n}\n\nGet Table Rows\n\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')/rows\n\nResponse:\n\n{\n  \"value\": [\n    {\n      \"index\": 0,\n      \"values\": [[\"Alice\", 30, \"NYC\"]]\n    },\n    {\n      \"index\": 1,\n      \"values\": [[\"Bob\", 25, \"LA\"]]\n    }\n  ]\n}\n\nAdd Table Row\n\nPOST /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')/rows\nContent-Type: application/json\n\n{\n  \"values\": [[\"Carol\", 35, \"Chicago\"]]\n}\n\nDelete Table Row\n\nDELETE /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')/rows/itemAt(index=0)\n\nReturns 204 No Content on success.\n\nGet Table Columns\n\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')/columns\n\nAdd Table Column\n\nPOST /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')/columns\nContent-Type: application/json\n\n{\n  \"values\": [[\"Email\"], [\"alice@example.com\"], [\"bob@example.com\"]]\n}"
      },
      {
        "title": "Named Items",
        "body": "List Named Items\n\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/names"
      },
      {
        "title": "Charts",
        "body": "List Charts\n\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/charts\n\nAdd Chart\n\nPOST /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/charts/add\nContent-Type: application/json\n\n{\n  \"type\": \"ColumnClustered\",\n  \"sourceData\": \"A1:C4\",\n  \"seriesBy\": \"Auto\"\n}"
      },
      {
        "title": "JavaScript",
        "body": "// Get range values\nconst response = await fetch(\n  \"https://gateway.maton.ai/microsoft-excel/v1.0/me/drive/root:/data.xlsx:/workbook/worksheets('Sheet1')/range(address='A1:B10')\",\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\nconsole.log(data.values);"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\n# Update range values\nresponse = requests.patch(\n    \"https://gateway.maton.ai/microsoft-excel/v1.0/me/drive/root:/data.xlsx:/workbook/worksheets('Sheet1')/range(address='A1:B2')\",\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    json={'values': [['Name', 'Age'], ['Alice', 30]]}\n)\nprint(response.json())"
      },
      {
        "title": "Notes",
        "body": "Only .xlsx files are supported (not legacy .xls)\nWorksheet names with special characters need URL encoding\nTable and worksheet IDs containing { and } must be URL-encoded (%7B and %7D)\nSessions expire after ~5 minutes of inactivity (persistent) or ~7 minutes (non-persistent)\nUse null in value arrays to skip updating specific cells\nBlank cells should use \"\" (empty string)\nRange addresses use A1 notation (e.g., A1:C10, Sheet1!A1:B5)\nIMPORTANT: When using curl commands, use curl -g when URLs contain parentheses to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments"
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Missing Microsoft Excel connection or invalid request401Invalid or missing Maton API key404Item not found or session expired429Rate limited4xx/5xxPassthrough error from Microsoft Graph API"
      },
      {
        "title": "Common Error Codes",
        "body": "CodeDescriptionItemNotFoundFile or resource doesn't existItemAlreadyExistsWorksheet or table with that name already existsInvalidArgumentInvalid parameter or missing required fieldSessionNotFoundSession expired or doesn't exist"
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with microsoft-excel. For example:\n\nCorrect: https://gateway.maton.ai/microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets\nIncorrect: https://gateway.maton.ai/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets"
      },
      {
        "title": "Resources",
        "body": "Microsoft Graph Excel API Overview\nWorking with Excel in Microsoft Graph\nExcel Workbook Resource\nExcel Worksheet Resource\nExcel Range Resource\nExcel Table Resource\nMaton Community\nMaton Support"
      }
    ],
    "body": "Microsoft Excel\n\nAccess the Microsoft Excel API (via Microsoft Graph) with managed OAuth authentication. Read and write workbooks, worksheets, ranges, tables, and charts stored in OneDrive or SharePoint.\n\nQuick Start\n# List worksheets in a workbook\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/microsoft-excel/{native-api-path}\n\n\nReplace {native-api-path} with the actual Microsoft Graph API endpoint path. The gateway proxies requests to graph.microsoft.com and automatically injects your OAuth token.\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your Microsoft Excel OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=microsoft-excel&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'microsoft-excel'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"4751ac89-3970-47e1-872c-eacdf4291732\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-07T00:43:18.565932Z\",\n    \"last_updated_time\": \"2026-02-07T00:43:29.729782Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"microsoft-excel\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSpecifying Connection\n\nIf you have multiple Microsoft Excel connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/microsoft-excel/v1.0/me/drive')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '4751ac89-3970-47e1-872c-eacdf4291732')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\nWorkbook Access Patterns\n\nYou can access workbooks using either ID-based or path-based patterns:\n\nBy File ID:\n\n/microsoft-excel/v1.0/me/drive/items/{file-id}/workbook/...\n\n\nBy File Path:\n\n/microsoft-excel/v1.0/me/drive/root:/{path-to-file}:/workbook/...\n\nAPI Reference\nDrive Operations\nGet Drive Info\nGET /microsoft-excel/v1.0/me/drive\n\nList Root Files\nGET /microsoft-excel/v1.0/me/drive/root/children\n\nSearch for Excel Files\nGET /microsoft-excel/v1.0/me/drive/root/search(q='.xlsx')\n\nUpload Excel File\nPUT /microsoft-excel/v1.0/me/drive/root:/{filename}.xlsx:/content\nContent-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\n\n{binary xlsx content}\n\nSession Management\n\nSessions improve performance for multiple operations. Recommended for batch operations.\n\nCreate Session\nPOST /microsoft-excel/v1.0/me/drive/root:/{path}:/workbook/createSession\nContent-Type: application/json\n\n{\n  \"persistChanges\": true\n}\n\n\nResponse:\n\n{\n  \"persistChanges\": true,\n  \"id\": \"cluster=PUS7&session=...\"\n}\n\n\nUse the session ID in subsequent requests:\n\nworkbook-session-id: {session-id}\n\nClose Session\nPOST /microsoft-excel/v1.0/me/drive/root:/{path}:/workbook/closeSession\nworkbook-session-id: {session-id}\n\nWorksheet Operations\nList Worksheets\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets\n\n\nResponse:\n\n{\n  \"value\": [\n    {\n      \"id\": \"{00000000-0001-0000-0000-000000000000}\",\n      \"name\": \"Sheet1\",\n      \"position\": 0,\n      \"visibility\": \"Visible\"\n    }\n  ]\n}\n\nGet Worksheet\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')\n\nCreate Worksheet\nPOST /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets\nContent-Type: application/json\n\n{\n  \"name\": \"NewSheet\"\n}\n\nUpdate Worksheet\nPATCH /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')\nContent-Type: application/json\n\n{\n  \"name\": \"RenamedSheet\",\n  \"position\": 2\n}\n\nDelete Worksheet\nDELETE /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('{worksheet-id}')\n\n\nReturns 204 No Content on success.\n\nRange Operations\nGet Range\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/range(address='A1:B2')\n\n\nResponse:\n\n{\n  \"address\": \"Sheet1!A1:B2\",\n  \"values\": [\n    [\"Hello\", \"World\"],\n    [1, 2]\n  ],\n  \"formulas\": [\n    [\"Hello\", \"World\"],\n    [1, 2]\n  ],\n  \"text\": [\n    [\"Hello\", \"World\"],\n    [\"1\", \"2\"]\n  ],\n  \"numberFormat\": [\n    [\"General\", \"General\"],\n    [\"General\", \"General\"]\n  ],\n  \"rowCount\": 2,\n  \"columnCount\": 2\n}\n\nGet Used Range\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/usedRange\n\nUpdate Range\nPATCH /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/range(address='A1:B2')\nContent-Type: application/json\n\n{\n  \"values\": [\n    [\"Updated\", \"Values\"],\n    [100, 200]\n  ]\n}\n\nClear Range\nPOST /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/range(address='A1:B2')/clear\nContent-Type: application/json\n\n{\n  \"applyTo\": \"All\"\n}\n\n\nOptions: All, Formats, Contents\n\nTable Operations\nList Tables\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/tables\n\nCreate Table from Range\nPOST /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/tables/add\nContent-Type: application/json\n\n{\n  \"address\": \"A1:C4\",\n  \"hasHeaders\": true\n}\n\n\nResponse:\n\n{\n  \"id\": \"{6D182180-5F5F-448B-9E9C-377A5251CFC5}\",\n  \"name\": \"Table1\",\n  \"showHeaders\": true,\n  \"showTotals\": false,\n  \"style\": \"TableStyleMedium2\"\n}\n\nGet Table\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')\n\nUpdate Table\nPATCH /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')\nContent-Type: application/json\n\n{\n  \"name\": \"PeopleTable\",\n  \"showTotals\": true\n}\n\nGet Table Rows\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')/rows\n\n\nResponse:\n\n{\n  \"value\": [\n    {\n      \"index\": 0,\n      \"values\": [[\"Alice\", 30, \"NYC\"]]\n    },\n    {\n      \"index\": 1,\n      \"values\": [[\"Bob\", 25, \"LA\"]]\n    }\n  ]\n}\n\nAdd Table Row\nPOST /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')/rows\nContent-Type: application/json\n\n{\n  \"values\": [[\"Carol\", 35, \"Chicago\"]]\n}\n\nDelete Table Row\nDELETE /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')/rows/itemAt(index=0)\n\n\nReturns 204 No Content on success.\n\nGet Table Columns\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')/columns\n\nAdd Table Column\nPOST /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/tables('Table1')/columns\nContent-Type: application/json\n\n{\n  \"values\": [[\"Email\"], [\"alice@example.com\"], [\"bob@example.com\"]]\n}\n\nNamed Items\nList Named Items\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/names\n\nCharts\nList Charts\nGET /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/charts\n\nAdd Chart\nPOST /microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets('Sheet1')/charts/add\nContent-Type: application/json\n\n{\n  \"type\": \"ColumnClustered\",\n  \"sourceData\": \"A1:C4\",\n  \"seriesBy\": \"Auto\"\n}\n\nCode Examples\nJavaScript\n// Get range values\nconst response = await fetch(\n  \"https://gateway.maton.ai/microsoft-excel/v1.0/me/drive/root:/data.xlsx:/workbook/worksheets('Sheet1')/range(address='A1:B10')\",\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\nconsole.log(data.values);\n\nPython\nimport os\nimport requests\n\n# Update range values\nresponse = requests.patch(\n    \"https://gateway.maton.ai/microsoft-excel/v1.0/me/drive/root:/data.xlsx:/workbook/worksheets('Sheet1')/range(address='A1:B2')\",\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    json={'values': [['Name', 'Age'], ['Alice', 30]]}\n)\nprint(response.json())\n\nNotes\nOnly .xlsx files are supported (not legacy .xls)\nWorksheet names with special characters need URL encoding\nTable and worksheet IDs containing { and } must be URL-encoded (%7B and %7D)\nSessions expire after ~5 minutes of inactivity (persistent) or ~7 minutes (non-persistent)\nUse null in value arrays to skip updating specific cells\nBlank cells should use \"\" (empty string)\nRange addresses use A1 notation (e.g., A1:C10, Sheet1!A1:B5)\nIMPORTANT: When using curl commands, use curl -g when URLs contain parentheses to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments\nError Handling\nStatus\tMeaning\n400\tMissing Microsoft Excel connection or invalid request\n401\tInvalid or missing Maton API key\n404\tItem not found or session expired\n429\tRate limited\n4xx/5xx\tPassthrough error from Microsoft Graph API\nCommon Error Codes\nCode\tDescription\nItemNotFound\tFile or resource doesn't exist\nItemAlreadyExists\tWorksheet or table with that name already exists\nInvalidArgument\tInvalid parameter or missing required field\nSessionNotFound\tSession expired or doesn't exist\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with microsoft-excel. For example:\nCorrect: https://gateway.maton.ai/microsoft-excel/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets\nIncorrect: https://gateway.maton.ai/v1.0/me/drive/root:/workbook.xlsx:/workbook/worksheets\nResources\nMicrosoft Graph Excel API Overview\nWorking with Excel in Microsoft Graph\nExcel Workbook Resource\nExcel Worksheet Resource\nExcel Range Resource\nExcel Table Resource\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/microsoft-excel",
    "publisherUrl": "https://clawhub.ai/byungkyu/microsoft-excel",
    "owner": "byungkyu",
    "version": "1.0.3",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/microsoft-excel",
    "downloadUrl": "https://openagent3.xyz/downloads/microsoft-excel",
    "agentUrl": "https://openagent3.xyz/skills/microsoft-excel/agent",
    "manifestUrl": "https://openagent3.xyz/skills/microsoft-excel/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/microsoft-excel/agent.md"
  }
}