{
  "id": "gogcli",
  "name": "gogcli",
  "homepage": "https://github.com/openclaw/gogcli",
  "description": "One command-line client for Gmail, Calendar, Drive, Docs, Sheets, and the wider Google Workspace surface.",
  "executables": [
    "gog"
  ],
  "dotfiles": {
    "paths": [
      "[appData]/gogcli/config.json",
      "[configHome]/gogcli/config.json",
      "%APPDATA%/gogcli/config.json"
    ],
    "secret": [
      "[appData]/gogcli/credentials*.json",
      "[configHome]/gogcli/credentials*.json",
      "%APPDATA%/gogcli/credentials*.json"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Google Workspace CLI",
    "description": "Global gog options for scripted, read-only use. Subcommands (gmail, calendar, drive ...) are covered by the Gmail search node.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "readme",
        "kind": "manual",
        "url": "https://github.com/openclaw/gogcli/blob/main/README.md",
        "revision": "2026-10-27",
        "evidence": "gog --readonly gmail search 'is:unread newer_than:7d' --max 10 --json\n`--json` emits structured output and `--plain` emits stable TSV. Prompts, progress, and warnings go to stderr. `--no-input`, `--readonly`,\n`--account` still selects the account label.\n"
      }
    ],
    "field": [
      {
        "id": "account",
        "label": "Account",
        "type": "string",
        "option": [
          "--account"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "readonly",
        "label": "Read-only",
        "type": "boolean",
        "option": [
          "--readonly"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "no_input",
        "label": "No prompts",
        "type": "boolean",
        "option": [
          "--no-input"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "json",
        "label": "JSON output",
        "type": "boolean",
        "option": [
          "--json"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "plain",
        "label": "TSV output",
        "type": "boolean",
        "option": [
          "--plain"
        ],
        "sources": [
          "readme"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "account",
          "readonly",
          "no_input",
          "json",
          "plain"
        ]
      }
    ],
    "subcommand": [
      {
        "path": [
          "gmail",
          "search"
        ],
        "label": "Search Gmail",
        "source": [
          {
            "id": "readme",
            "kind": "manual",
            "url": "https://github.com/openclaw/gogcli/blob/main/README.md",
            "revision": "2026-10-27",
            "evidence": "gog --readonly gmail search 'is:unread newer_than:7d' --max 10 --json\ngog gmail search 'newer_than:7d' --max 10\n"
          }
        ],
        "field": [
          {
            "id": "query",
            "label": "Gmail query",
            "type": "string",
            "position": 0,
            "min": 1,
            "sources": [
              "readme"
            ]
          },
          {
            "id": "max",
            "label": "Max results",
            "type": "integer",
            "option": [
              "--max"
            ],
            "sources": [
              "readme"
            ]
          }
        ],
        "task": [
          {
            "id": "search",
            "label": "Search messages",
            "fields": [
              "query",
              "max"
            ],
            "required": [
              "query"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "query",
              "max"
            ]
          }
        ]
      }
    ]
  }
}
