Skip to content
Agentmart
Submit a tool

tencent-docs-api-v3

Tencent Docs API V3 client wrapper.

Skill by gricn

IndexedMIT
Write a review

Chalk Labs

Need help deploying tencent-docs-api-v3?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/gricn-tencent-docs-api-v3

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Tencent Docs API V3 client wrapper. OAuth2 auth, batch read/write, bounded auto-retry. Used to replace a subset of browser-automation operations and reduce API calls. The free 100/day quota covers daily inventory and sales-record updates.

Use cases: backend, security, writing, sales

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/tencent-docs-api-v3

What's inside

Skill name
tencent-docs-api-v3
Description
Tencent Docs API V3 client wrapper. OAuth2 auth, batch read/write, bounded auto-retry. Used to replace a subset of browser-automation operations and reduce API calls. The free 100/day quota covers daily inventory and sales-record updates.
License
MIT
Instructions
110 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • .gitkeep · scripts/
  • README.md · scripts/

SKILL.md (first lines)

# Tencent Docs API V3

## Capabilities

- **OAuth2 auth**: automatic token management, caching, expiry detection.
- **Batch read/write**: wraps `batchUpdate` and `read_cells`.
- **Bounded retry**: exponential backoff, default max 2 attempts.
- **Quota-friendly**: 100/day free tier is sufficient for routine ops.

## Applicable scenarios

- Inventory read.
- Surgery-date / patient-id back-fill.
- Sales-record base writes.
- **NOT applicable**: cell merge, border, filter — still require the browser.

## Default priority

- This is the **lower-level capability** under Tencent Docs flows. It is not the user-facing entry skill for coupled tasks like "ship the goods" — those default to `medical-inventory-tencent-import`, which then dispatches into this API as needed.
- Whenever a Tencent Docs step can be done with `access_token + client_id + open_id` API, prefer this path.
- For pure-read or pure-value-write steps already covered by the official API, do not default to in-page `behaviorApi / mutationApi`.
- Browser automation is reserved for what the official API does not cover: row insert, merge, border / font / alignment, filter.
- The API path must work under the free tier — never adopt "paid quota + many retries" as a baseline success contract.
- A single request failure may retry within a short bounded chain; on persistent failure, report — do not paper over with long retries.

## Usage

### 1. Basic read

```python
from skills.tencent-docs-api-v3.scripts.tencent-docs-api-v3 import create_client_from_env

client = create_client_from_env()

sheets = client.list_sheets("<doc-id>")
data = client.read_cells("<doc-id>", sheets[0]["sheetId"], "A1:J100")
```

### 2. Batch write

```python
requests = [{
    "updateRangeRequest": {
        "sheetId": sheet_id,
        "gridData": {
            "startRow": 10,
            "startColumn": 8,  # column I
            "rows": [{"values": [{"cellValue": {"text": "2026/03/27"}}]}],
        },
    }
}]

result = client.batch_update("<doc-id>", requests)
```

Notes:
- The actually writable request name is `updateRangeRequest`, not `updateCellsRequest`.
- Single `batchUpdate` carries at most 5 requests; 6 triggers a `BatchSize Validate error`.

### 3. Tests

```bash
./.venv/bin/python skills/tencent-docs-api-v3/scripts/test_smoke.py
```

## Quota

| Item | Value |
|------|------|
| Free tier | 100/day |
| Estimated daily use | 15–25 |
| Headroom | 75–85 |

**No paid plan required.**

## Environment variables

Configured under `workspaces/tencent-docs-api/.env`:

```
CLIENT_ID=<your_client_id>
ACCESS_TOKEN=<your_access_token>
OPEN_ID=<your_open_id>
```

## Doc ID mapping

| Env | Type | Doc ID |
|-----|------|--------|
| test | inventory | `<test-inv-doc-id>` |
| test | sales | `<test-sales-doc-id>` |
| prod | inventory | `<prod-inv-doc-id>` |
| prod | sales | `<prod-sales-doc-id>` |

## Limitations

- No cell merge support.
- No border setting.
- No font / alignment style.
- No filter operations.
- If an API experiment breaks the live test / prod doc, recover via Tencent Docs revision history to a clearly known version — do not "write back to look approximately right".

These features still require browser automation.

## References

- Detailed evaluation: `workspaces/tencent-docs-api/API_V3_MIGRATION_PLAN.md` (private repo)
- Implementation summary: `workspaces/tencent-docs-api/IMPLEMENTATION_SUMMARY.md` (private repo)

From gricn/clinical-ops-skill-kit, MIT.

More from gricn/clinical-ops-skill-kit

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
May 26, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from gricn

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get tencent-docs-api-v3 running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying tencent-docs-api-v3?

CallGet help
Cite this page

tencent-docs-api-v3 skill. Agent Mart. https://agentmart.dev/skills/gricn-tencent-docs-api-v3 (last updated 2026-10-24)