← All courses

EDGE FDE

Intermediate

Run tools in a safe box

Protect user data and device resources when the model calls tools.

Isolated tool executor with resource limits, honest about Apple sandbox options.

Every Tool.call goes through one box. iOS has no general helper binary. iOS 27 and macOS 27 only.

Lessons

  1. What a tool can touch
  2. Honest Apple sandbox options
  3. Write one isolated executor
  4. Limit time, memory, files, and network
  5. Put the box behind every tool

Key concepts

Takeaways

Agent briefs

Related courses

Talk to tools with MCP · Stop prompt attacks and leaks · Make several agents agree first