zeroclaw-labs/zeroclaw · error · anyhow::Error
Unknown action '{action}'. Valid: get, list_hints, set_defau
Error message
Unknown action '{action}'. Valid: get, list_hints, set_default, upsert_scenario, remove_scenario, upsert_agent, remove_agent What it means
Error "Unknown action '{action}'. Valid: get, list_hints, set_default, upsert_scenario, remove_scenario, upsert_agent, remove_agent" thrown in zeroclaw-labs/zeroclaw.
Source
Thrown at crates/zeroclaw-tools/src/model_routing_config.rs:1193
let result = match action.as_str() {
"get" => self.handle_get(),
"list_hints" => self.handle_list_hints(),
"set_default" | "upsert_scenario" | "remove_scenario" | "upsert_agent"
| "remove_agent" => {
if let Some(blocked) = self.require_write_access() {
return Ok(blocked);
}
match action.as_str() {
"set_default" => Box::pin(self.handle_set_default(&args)).await,
"upsert_scenario" => Box::pin(self.handle_upsert_scenario(&args)).await,
"remove_scenario" => Box::pin(self.handle_remove_scenario(&args)).await,
"upsert_agent" => Box::pin(self.handle_upsert_agent(&args)).await,
"remove_agent" => Box::pin(self.handle_remove_agent(&args)).await,
_ => unreachable!("validated above"),
}
}
_ => anyhow::bail!(
"Unknown action '{action}'. Valid: get, list_hints, set_default, upsert_scenario, remove_scenario, upsert_agent, remove_agent"
),
};
match result {
Ok(outcome) => Ok(outcome),
Err(error) => Ok(ToolResult {
success: false,
output: ToolOutput::default(),
error: Some(error.to_string()),
}),
}
}
}
#[cfg(test)]
mod tests {
use super::*;View on GitHub (pinned to 88bb9c8533)
Solutions
- Use a valid action: get, list_hints, set_default, upsert_scenario, remove_scenario, upsert_agent, or remove_agent.
When it happens
Trigger: Thrown at crates/zeroclaw-tools/src/model_routing_config.rs:1193 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23).
Data as JSON: /api/errors/03862e3ca51ead95.
Report an issue: GitHub.