⌨️sandbox.filesystem.allowRead
Also known as allowRead
A list of paths that may be read inside a blocked area.
Think of it like
It is like a locked hall with one door left open. The rest stays shut, that one room is free.
Example
Lucy wants commands to read her project and nothing else in her home folder. She blocks ~/ and opens . with allowRead.
Why it matters
It turns wide reads into narrow ones, and you do not have to list each secret.
Definition
Example code
json
{
"sandbox": {
"filesystem": {
"denyRead": ["~/"],
"allowRead": ["."]
}
}
}Common mistake
Key takeaways
- 1Re-opens reading. Inside a deny.
- 2Project-only reads. With denyRead.
- 3Specific deny wins. Even inside.