Loading...
Loading...
Reads Google Sheets and converts content to markdown. Use when the user asks to read, fetch, or convert Google Sheets data to markdown.
npx skill4agent add duongvm57/gsheet2md-skill gsheet2mdSPREADSHEET_ID~/.config/google-sheets/oauth-token.jsonclient_idclient_secretrefresh_token./docs./docsSKILL.md<skill-dir>/scripts/read_sheet.pypython3 <skill-dir>/scripts/read_sheet.py --spreadsheet-id <SPREADSHEET_ID> --sheet-name <SHEET_NAME>./docs/<derived-sheet-name>.md| Parameter | Required | Description |
|---|---|---|
| Yes | The Google Spreadsheet ID |
| No | Sheet name to read. Defaults to the first sheet. |
| No | OAuth credentials path. Defaults to |
| No | Output file path. Defaults to stdout. |
| No | Output format: |
| No | Keep empty columns instead of cleaning them. |
# Fetch as JSON
python3 <skill-dir>/scripts/read_sheet.py \
--spreadsheet-id "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms" \
--sheet-name "Sheet1"
# Fetch as markdown table
python3 <skill-dir>/scripts/read_sheet.py \
--spreadsheet-id "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms" \
--format table
# Save raw output directly into the current workspace docs folder
mkdir -p ./docs
python3 <skill-dir>/scripts/read_sheet.py \
--spreadsheet-id "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms" \
--format table \
--output ./docs/sheet1.md{
"type": "oauth",
"client_id": "your-client-id.apps.googleusercontent.com",
"client_secret": "your-client-secret",
"refresh_token": "your-refresh-token"
}./docs./docs./docs/