Capabilities / config
config
@1A mod's own config values, declared in its manifest and drawn by the host.
Declaring the schema is what generates the panel. A mod does not draw its own settings, which is the structural half of the trusted prompt rule: if mods drew arbitrary interface where Axiom draws permission prompts, a mod could draw a convincing fake one.
3 callsSurface as of 2026-10-21
Calls
number
number(key: str) -> Result<f32>
Read a value the user has set, by the key the manifest declared. The value comes back clamped to the range the schema gave it, so a mod never has to defend against its own settings file.
In C, from surface.h
int32_t axiom_config_number(const char* key, uint32_t key_length, float* out);
flag
flag(key: str) -> Result<bool>
In C, from surface.h
int32_t axiom_config_flag(const char* key, uint32_t key_length, int32_t* out);
text
text(key: str) -> Result<str>
In C, from surface.h
int32_t axiom_config_text(const char* key, uint32_t key_length, char* out, uint32_t out_length, uint32_t* out_used);
Events
changed
key: strErrors
A call that returns Result crosses as a status: 0 is success, and the others are these errors, by their index in the capability.
UnknownKeyWrongKind