> For the complete documentation index, see [llms.txt](https://wong-coupon.gitbook.io/flutter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wong-coupon.gitbook.io/flutter/my-ai/context-tools.md).

# Context & Tools

Prepare context, files, skills, and input; manage resources, agents, and tools within AI products.

Prepare context, files, skills, and input; manage resources, agents, and tools within AI products.

## Articles

* [Safe Context for AI Chat](/flutter/my-ai/context-tools/selection-file-canvas-resource-context.md) — Project selections, files, canvas objects, and resources into provider DTOs only after authority, consent, revision, and payload-limit checks.
* [Safe File Uploads for AI Chat](/flutter/my-ai/context-tools/safe-file-upload-ai-chat.md) — Publish files into AI context only after upload, server processing, and authority-bound readiness proofs with explicit retry and limits.
* [Safe Skill Selection for AI Chat](/flutter/my-ai/context-tools/safe-skill-selection-ai-chat.md) — Separate display catalogs from execution authority, bind selection and capabilities to current ownership, and fence prepare, send, and retry races.
* [Normalize Input Before Calling AI](/flutter/my-ai/context-tools/normalize-input-before-ai.md) — Package prompts, templates, domain values, and attachments into one immutable intent with explicit revision, idempotency, and retry ownership.
* [Open AI Resources Safely During Autosave](/flutter/my-ai/context-tools/open-ai-created-resource-autosave.md) — Put authority resolution, durable save receipts, and latest-intent fences before switching to an AI-suggested document.
* [Manage Agents and Skills on the Web](/flutter/my-ai/context-tools/agent-skill-web-editor.md) — Separate server snapshots from drafts and use bounded paths, request identity, and revisions to keep loads, saves, and validation from overwriting newer state.

[Buy Me a Coffee](https://buymeacoffee.com/ducmng12g) | [Support Me on Ko-fi](https://ko-fi.com/I2I81AEJG8)
