gdocs
2
总安装量
2
周安装量
#69995
全站排名
安装命令
npx skills add https://github.com/naoterumaker/openclaw-gog-skills --skill gdocs
Agent 安装分布
mcpjam
2
claude-code
2
replit
2
junie
2
windsurf
2
zencoder
2
Skill 文档
Google Docs æä½ã¹ãã« (gog v0.10.0)
gog CLI ã§ Google ããã¥ã¡ã³ããæä½ããã
å®è¡ãã¹: gog
èªè¨¼ã¢ã«ã¦ã³ã: (gogã§èªè¨¼ããã¢ã«ã¦ã³ã)
Execution Notes
execãã¼ã«ã§å®è¡æãtimeout: 60ãæå®- ããã¥ã¡ã³ãID㯠URL
https://docs.google.com/document/d/<docId>/editããåå¾å¯è½
ã³ãã³ããªãã¡ã¬ã³ã¹
ããã¥ã¡ã³ã使
gog docs create "<title>"
gog docs create "<title>" --parent "<folderId>" # ç¹å®ãã©ã«ãã«ä½æ
gog docs create "<title>" --file "./content.md" # Markdownãã¡ã¤ã«ããã¤ã³ãã¼ã
ããã¥ã¡ã³ãæ å ±åå¾
gog docs info <docId>
gog docs info <docId> --json
ããã¥ã¡ã³ãèªã¿åãï¼ãã¬ã¼ã³ããã¹ãï¼
gog docs cat <docId>
gog docs cat <docId> --tab "<tabTitle>" # ç¹å®ã¿ãã®ã¿
gog docs cat <docId> --all-tabs # å
¨ã¿ã表示
gog docs cat <docId> --max-bytes 0 # å¶éãªãï¼ããã©ã«ã2MBï¼
ããã¥ã¡ã³ãæ¸ãè¾¼ã¿
# æ«å°¾ã«è¿½è¨ï¼ããã©ã«ãï¼
gog docs write <docId> "追å ããã¹ã"
gog docs write <docId> --file "./content.txt"
echo "ããã¹ã" | gog docs write <docId> --file -
# å
¨ä½ãç½®æ
gog docs write <docId> "æ°ããå
容" --replace
gog docs write <docId> --file "./content.md" --replace --markdown
ããã¹ãæ¿å ¥ï¼ä½ç½®æå®ï¼
gog docs insert <docId> "æ¿å
¥ããã¹ã" --index 1 # å
é ã«æ¿å
¥
gog docs insert <docId> "æ¿å
¥ããã¹ã" --index 50 # 50æåç®ã«æ¿å
¥
gog docs insert <docId> --file "./snippet.txt" --index 1
ããã¹ãåé¤ï¼ç¯å²æå®ï¼
gog docs delete <docId> --start 1 --end 100
æ¤ç´¢ç½®æ
gog docs find-replace <docId> "æ¤ç´¢æåå" "ç½®ææåå"
gog docs find-replace <docId> "old" "new" --match-case # 大æåå°æååºå¥
ããã¥ã¡ã³ãã³ãã¼
gog docs copy <docId> "ã³ãã¼ã®ã¿ã¤ãã«"
gog docs copy <docId> "ã³ãã¼ã®ã¿ã¤ãã«" --parent "<folderId>"
ã¨ã¯ã¹ãã¼ãï¼ãã¦ã³ãã¼ãï¼
gog docs export <docId> # PDFï¼ããã©ã«ãï¼
gog docs export <docId> --format docx # Wordå½¢å¼
gog docs export <docId> --format txt # ããã¹ãå½¢å¼
gog docs export <docId> --format pdf --out "./out.pdf"
ã¿ãä¸è¦§
gog docs list-tabs <docId>
gog docs list-tabs <docId> --json
ã³ã³ãã³ãæ´æ°ï¼updateï¼
gog docs update <docId> --content "æ°ããå
容" # å
¨ä½ç½®æ
gog docs update <docId> --content "追å ããã¹ã" --append # æ«å°¾è¿½è¨
gog docs update <docId> --content-file "./doc.md" --format markdown # Markdown夿
åºåãªãã·ã§ã³
| ãªãã·ã§ã³ | 説æ |
|---|---|
--json / -j |
JSONåºå |
--plain / -p |
TSVåºåï¼ãã¼ã¹åãï¼ |
--results-only |
JSONæãçµæã®ã¿åºå |
--select "field1,field2" |
JSONæããã£ã¼ã«ãçµã込㿠|
--dry-run / -n |
夿´ããæå³ã表示 |
å ¸åã¯ã¼ã¯ããã¼
æ°è¦ããã¥ã¡ã³ãä½æâæ¸ãè¾¼ã¿
# 1. 使ï¼IDãåå¾ï¼
gog docs create "è°äºé² 2026-02-15" --json
# 2. å
å®¹ãæ¸ãè¾¼ã¿
gog docs write <docId> --file "./minutes.md" --replace --markdown
ããã¥ã¡ã³ãèªã¿åãâç·¨é
# 1. å
容確èª
gog docs cat <docId>
# 2. ããã¹ãç½®æ
gog docs find-replace <docId> "æ§ããã¸ã§ã¯ãå" "æ°ããã¸ã§ã¯ãå"
ã¨ã¯ã¹ãã¼ã
# PDFåºå
gog docs export <docId> --format pdf --out "./report.pdf"
# Wordåºå
gog docs export <docId> --format docx --out "./report.docx"
ãã³ãã¬ã¼ãããã³ãã¼
# 1. ãã³ãã¬ã¼ããã³ãã¼
gog docs copy <templateDocId> "æ°ããããã¥ã¡ã³ã" --json
# 2. ãã¬ã¼ã¹ãã«ãã¼ãç½®æ
gog docs find-replace <newDocId> "{{NAME}}" "ç°ä¸å¤ªé"
gog docs find-replace <newDocId> "{{DATE}}" "2026å¹´2æ15æ¥"
ã¿ãæä½
# ã¿ãä¸è¦§ã確èª
gog docs list-tabs <docId>
# ç¹å®ã¿ãã®å
容ãèªã
gog docs cat <docId> --tab "Sheet1"
# å
¨ã¿ãã®å
容ã䏿¬è¡¨ç¤º
gog docs cat <docId> --all-tabs
注æäºé
- ããã¥ã¡ã³ãã®ä¸è¦§åå¾:
gog docsã«ã¯list ã³ãã³ãããªããDriveçµç±ã§æ¤ç´¢ãã:gog drive ls --query "mimeType='application/vnd.google-apps.document'" - write ã®ããã©ã«ãã¯è¿½è¨: å
¨ä½ãæ¸ãæããå ´åã¯
--replaceãå¿ ãä»ãã - Markdown夿:
--markdownã¯--replaceã¨ä½µç¨ãå¿ è¦ï¼writeï¼ãupdate ã§ã¯--format markdownã使ã - insert ã® index: 1å§ã¾ããããã¥ã¡ã³ãå é 㯠index=1
- delete ã®ç¯å²:
--startã¨--endã¯å¿ é ãäºåã«catã§å 容ã確èªãã¦ããã¤ã³ããã¯ã¹ãæå® - 大ããªããã¥ã¡ã³ã:
catã®ããã©ã«ãä¸éã¯2MBã--max-bytes 0ã§ç¡å¶é - ç¹æ®æå: ã·ã§ã«ã¨ã¹ã±ã¼ãã«æ³¨æï¼å¼ç¨ç¬¦ãæ¹è¡ãªã©ï¼
- é·ãæ¬æ:
--fileãªãã·ã§ã³ã¾ã㯠stdin (--file -) ã使ã