tiktok

tiktok is a skill for Claude Code, Codex from agentproto/ts. It costs 42 tokens per session (890 once invoked), scanned A, original, Apache-2.0.

A skill for reading TikTok through the user's authenticated browser session, including feeds, profiles, videos, and comments. It uses TikTok's own page requests because TikTok protects many direct requests with changing security checks.

In plain words
What is it for?
Use it to research TikTok feeds, users, videos, comments, and related activity while signed in as the user.
Why use it?
It helps retrieve structured TikTok information when ordinary page scraping or manually recreating TikTok's request signatures would be unreliable.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/agentproto/ts/tiktok
Any agent
npx skills add agentproto/ts --skill tiktok
Clone the repo
git clone --depth 1 https://github.com/agentproto/ts

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tiktok

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentproto/ts/tiktok.svg)](https://agentmods.dev/skills/agentproto/ts/tiktok)
Your own site
<a href="https://agentmods.dev/skills/agentproto/ts/tiktok"><img src="https://agentmods.dev/badge/skills/agentproto/ts/tiktok.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 890 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00042 $0.00890
Opus 5 $0.00021 $0.00445
Sonnet 5 $0.00008 $0.00178
Haiku 4.5 $0.00004 $0.00089

Measured 3d ago against content hash 28bc9ed7f408, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tiktok scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skill-pack-bureau/src/skills/tiktok/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TikTok — recon plan (hardest: anti-bot signing)

Internal API: https://www.tiktok.com/api/<endpoint>/ with a large param set plus anti-bot signing: msToken (cookie + param), X-Bogus / _signature / X-Gnarly — generated by TikTok's obfuscated webmssdk JS. Hand-crafting signed requests from scratch is impractical; use the page's own signer or its own fetches.

The winning move: stay in-page, reuse TikTok's signer

Because we run inside the loaded tiktok.com page, the signing code is already present. Two viable strategies (capture which works):

  1. Reuse the page's fetch path — trigger the action via the UI (scroll feed, open a video, open comments) and read the resulting /api/ JSON responses from list_network_requests / a fetch-hook. Lowest-friction for READS.
  2. Call the in-page signer — TikTok exposes signing via globals (window.byted_acrawler / the SDK's sign fn) used to build X-Bogus. If reachable, sign your own request params in-page, then fetch. Capture the exact global + signature param names live (they change).

Auth: cookies (sessionid, tt_csrf_token, msToken) ride same-origin; writes need sessionid + valid signature.

Endpoints (capture live; param sets are huge + signed)

Purpose endpoint
For-You feed /api/recommend/item_list/
A user's videos /api/post/item_list/?secUid=<…>
User detail /api/user/detail/?uniqueId=<handle>
Comments (who/likes) /api/comment/list/?aweme_id=<id>
Video detail /api/item/detail/?itemId=<id>
Search /api/search/general/full/?keyword=<q>
WRITE: like (digg) /api/commit/item/digg/
WRITE: follow /api/commit/follow/user/
WRITE: comment /api/comment/publish/

Read the full file on GitHub · 77 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 77 lines · 42 tokens per session scan A 28bc9ed7f408

Subscribe to this mod's changes

tiktok is a skill published in the GitHub repository agentproto/ts (5 stars, last pushed 3d ago), licensed Apache-2.0. It adds 42 tokens to every session and 890 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

transformers-js

Build and validate local browser or Bun inference with Hugging Face Transformers.js, WebGPU or WASM backends, quantization, caching, and cleanup.

metaspartan/cybara · 35 tokens

golem-js-runtime

JavaScript runtime environment for TypeScript and Scala Golem agents. Use when asking about available APIs, Node.js modules, browser APIs, or runtime capabilities in the QuickJS-based WASM environment.

golemcloud/golem · 44 tokens

browser-qa

Validate web applications through the embedded browser with responsive, interaction, console, and screenshot checks.

metaspartan/cybara · 22 tokens

ai-browser-use

业务诊断助手适合市场营销、运营、产品、销售在用户提出“这件事该怎么做”这类问题,需要快速拆解目标、判断重点并形成可执行结果时使用,帮助基于输入材料生成摘要、诊断结论、行动建议和可复用交付物。.

skillsaiagent/aiskills · 71 tokens

hatch3r-browser-verify

Opt-in browser verification skill — spec-run-first Playwright verification (assertions execute in the runner, agent reads only failures), axe-core a11y audits, toHaveScreenshot() regression diffs, E2E test scaffolds, and snapshot-mode exploratory driving. Default ON for UI-affecting agent invocations; disable globally…

hatch3r/hatch3r · 83 tokens

hatch3r-cli-toolbox

Category-indexed reference for 34 specialist CLI tools beyond the always-on five (ripgrep, jq, gh, fd, fzf). Use to pick the right tool for HTTP clients, ai-chat, structural-search, sed-style edits, data ops, browser automation, container ops, and more.

hatch3r/hatch3r · 68 tokens