Lightpanda: the headless browser designed for AI and automation
docs: list the prompt commands in the generated agent reference
Adrià Arrufat9c367e4178d6
diff --git a/src/docs.zig b/src/docs.zigindex 9ef1248d5..70456d17a 100644--- a/src/docs.zig+++ b/src/docs.zig@@ -158,7 +158,15 @@ fn writeAgentCommands(w: *Writer) Writer.Error!void {try w.print("| `/{s}` | {f} |\n", .{ row.name, Cell{ .s = row.description } });}- try w.writeAll("\n### Browser commands\n\nEvery browser tool runs directly as a slash command, with no model call. A lone required argument can be passed positionally; the rest take `key=value` or a JSON object.\n\n| Command | Description |\n|---|---|\n");+ try w.writeAll("\n### Browser commands\n\nGiven its fields, every browser tool runs directly as a slash command, with no model call. A lone required argument can be passed positionally; the rest take `key=value` or a JSON object.\n\n");+ try w.writeAll("These take only `key=value`, and also accept a prompt in place of their fields:");+ var first = true;+ for (Schema.all()) |*s| {+ if (!Schema.takesPrompt(s.tool)) continue;+ try w.print("{s} `/{s}`", .{ if (first) "" else ",", s.tool_name });+ first = false;+ }+ try w.writeAll(". `/click the sign in button` asks the model for the selector, and the call it makes is what `/save` records.\n\n| Command | Description |\n|---|---|\n");for (std.enums.values(Tool.Group)) |g| {for (Schema.all()) |*s| {if (s.tool.group() != g) continue;