Skip to content

Commit f69df7f

Browse files
authored
Update start_stop_play tool description to not enter play_server mode unless no client/player needed. (#81)
1 parent 0b5416e commit f69df7f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/rbx_studio_server.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ struct GetStudioMode {}
114114

115115
#[derive(Debug, Deserialize, Serialize, schemars::JsonSchema, Clone)]
116116
struct StartStopPlay {
117-
#[schemars(description = "Mode to start or stop, must be start_play, stop, or run_server")]
117+
#[schemars(
118+
description = "Mode to start or stop, must be start_play, stop, or run_server. Don't use run_server unless you are sure no client/player is needed."
119+
)]
118120
mode: String,
119121
}
120122

@@ -177,7 +179,9 @@ impl RBXStudioServer {
177179
.await
178180
}
179181

180-
#[tool(description = "Start or stop play mode or run the server.")]
182+
#[tool(
183+
description = "Start or stop play mode or run the server, Don't enter run_server mode unless you are sure no client/player is needed."
184+
)]
181185
async fn start_stop_play(
182186
&self,
183187
Parameters(args): Parameters<StartStopPlay>,

0 commit comments

Comments
 (0)