Skip to content
Axiom/Docs
Capabilities / fs.any

fs.any

@1NEEDS A GRANT

Files anywhere the user has allowed.

Separate from fs@1 so that declaring one is not declaring the other. This is the capability the overlay's denied notice is about: a mod that never declared it asked to read a file outside its own directory, the call came back refused, and the mod carried on.

2 callsSurface as of 2026-10-21
Never granted automatically

Outside the mod's own directory. The whole point of it being a separate capability is that declaring fs is not declaring this.

Calls

read
read(path: str) -> Result<Blob>
In C, from surface.h
int32_t axiom_fs_any_read(const char* path, uint32_t path_length, uint8_t* out, uint32_t out_length, uint32_t* out_used);
exists
exists(path: str) -> Result<bool>
In C, from surface.h
int32_t axiom_fs_any_exists(const char* path, uint32_t path_length, int32_t* out);

Errors

A call that returns Result crosses as a status: 0 is success, and the others are these errors, by their index in the capability.

NotFoundDenied