Back to skills
SKILL.md
Summaries
ASecurityTypeScript Files API reference inside the `claude-api` skill. Same constraints as Python version. **Beta**: pass `betas: ["files-api-2025-04-14"]` in API calls (SDK sets header automatically). **Key facts**: max 500 MB per file, 100 GB org total, persist until deleted, ops free + content billed as input tokens, NOT on Bedrock or Vertex. **Upload**: `client.beta.files.upload({ file: await toFile(fs.createReadStream("report.pdf"), undefined, { type: "application/pdf" }), betas: ["files-api-2025...
- 8 stars
- 0 votes
- 0 copies
- 2 views
- Added November 30, 2026
Works with
Security analysis
100/100Pro scans all 21 files and shows the line behind each finding
npx -y skills add NickCollect/ai-coding-runbook --skill Summaries --agent claude-codeAre you the author of Summaries?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nickcollect-summaries-adf462e9)---
type: summary
source: 01_Raw/github/anthropics/skills/skills/claude-api/typescript/claude-api/files-api.md
title: "claude-api skill: Files API — TypeScript"
summarized_at: 2026-05-05
entities_referenced: [Skill]
concepts_referenced: []
---
TypeScript Files API reference inside the `claude-api` skill. Same constraints as Python version.
**Beta**: pass `betas: ["files-api-2025-04-14"]` in API calls (SDK sets header automatically).
**Key facts**: max 500 MB per file, 100 GB org total, persist until deleted, ops free + content billed as input tokens, NOT on Bedrock or Vertex.
**Upload**: `client.beta.files.upload({ file: await toFile(fs.createReadStream("report.pdf"), undefined, { type: "application/pdf" }), betas: ["files-api-2025-04-14"] })` returns `{id, size_bytes, ...}`.
**Use in messages** — reference uploaded file:
```ts
{
type: "document",
source: { type: "file", file_id: uploaded.id },
title: "Q4 Report",
citations: { enabled: true }
}
```
**Manage**:
- `client.beta.files.list({ betas: [...] })` → iterate `.data`.
- `client.beta.files.delete(file_id, { betas: [...] })`.
- `client.beta.files.download(file_id, { betas: [...] })` returns `Response`; convert via `Buffer.from(await response.arrayBuffer())` then write with `fs.promises.writeFile`.
Files in this skill
- 100k-context-windows--anthropic-news.md
- 2026-w13.md
- 2026-w14.md
- 2026-w15.md
- 2026-w16.md
- 2026-w17.md
- 3-5-models-and-computer-use--anthropic-news.md
- 3p-updates--internal-comms.md
- 81k-economics--anthropic-research.md
- AGENTS--codex-openai.md
- AGENTS--mcp-py-sdk.md
- AGENTS--mcp-spec.md
- AI-assistance-coding-skills--anthropic-research.md
- AI-fluency-index--anthropic-research.md
- AI-resistant-technical-evaluations--anthropic-eng.md
- ANTITRUST--mcp-spec.md
- AmazonBedrock-CONTRIBUTING--prompt-eng-tutorial.md
- AmazonBedrock-README--prompt-eng-tutorial.md
- CHANGELOG--agent-sdk-py-repo.md
- CHANGELOG--anthropic-sdk-py.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.