MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / list_tool_ids

Function list_tool_ids

crates/opencode-server/src/routes.rs:4099–4122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4097}
4098
4099async fn list_tool_ids() -> Json<Vec<String>> {
4100 Json(vec![
4101 "read".to_string(),
4102 "write".to_string(),
4103 "edit".to_string(),
4104 "bash".to_string(),
4105 "glob".to_string(),
4106 "grep".to_string(),
4107 "ls".to_string(),
4108 "webfetch".to_string(),
4109 "websearch".to_string(),
4110 "task".to_string(),
4111 "lsp".to_string(),
4112 "batch".to_string(),
4113 "plan_enter".to_string(),
4114 "plan_exit".to_string(),
4115 "todoread".to_string(),
4116 "todowrite".to_string(),
4117 "codesearch".to_string(),
4118 "apply_patch".to_string(),
4119 "skill".to_string(),
4120 "multiedit".to_string(),
4121 ])
4122}
4123
4124async fn list_tools(Query(_params): Query<HashMap<String, String>>) -> Json<Vec<ToolInfo>> {
4125 Json(vec![

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected