ResourceAccess Type
A sensitive action a tool or agent wants to perform, together with the specific resource it targets. The permission system decides whether to allow it. This is the resource-level companion to the capability-level `Permission` model: where `Permission` asks "may this agent use tool X?", `ResourceAccess` asks "may this run touch THIS path or THIS url?".
Union cases
| Union case |
Description
|
Full Usage:
File(operation, path)
Parameters:
string
path : string
|
Filesystem access at an absolute path. Operation is "read", "write", "delete", "list".
|
Full Usage:
ToolCall toolName
Parameters:
string
|
Invoke a named tool whose resource semantics the guard cannot introspect.
|
Full Usage:
Web(operation, url)
Parameters:
string
url : string
|
Network access to a URL. Operation is the HTTP method ("GET"/"POST"/…) or "fetch".
|
Instance members
| Instance member |
Description
|
Full Usage:
this.IsFile
Returns: bool
|
|
Full Usage:
this.IsToolCall
Returns: bool
|
|
Full Usage:
this.IsWeb
Returns: bool
|
|
Nao