From 591692a264a063968146bb23be1fe66f35c67a02 Mon Sep 17 00:00:00 2001 From: Zaxaerith Date: Tue, 13 Oct 2026 16:38:29 +0800 Subject: [PATCH] docs: clarify engine commands in control protocol (#845) (#873) Co-authored-by: Zaxaerith <189452125+Zaxaerith@users.noreply.github.com> --- docs/control-protocol.md | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/docs/control-protocol.md b/docs/control-protocol.md index 40af6bb8..1bc16d25 100644 --- a/docs/control-protocol.md +++ b/docs/control-protocol.md @@ -21,13 +21,16 @@ The server waits up to 60 s for the app to answer a request. After that it repli It may still finish and change the drawing, and its late result is discarded. Inspect the drawing (`drawing.inspect`) before sending it again. +The table below describes top-level control-protocol methods: names for the request's `method` +field. `engine.commands` returns a separate command catalog, not a list of additional methods. + | Method | Params | What it does | |---|---|---| | `cmdline.input` | `{text}` | Type a line at the command line exactly like a user. Starts commands by name/alias and answers prompts (points `x,y`, `@dx,dy`, `@d