Skip to content

Lightpanda: the headless browser designed for AI and automation

tree: say what the id in a [more] marker points at

Adrià Arrufat266f93a00ca9
diff --git a/src/browser/tools.zig b/src/browser/tools.zig
index a342eb34f..8e8723f7c 100644
--- a/src/browser/tools.zig
+++ b/src/browser/tools.zig
@@ -572,7 +572,7 @@ pub const Tool = enum {
\\ "timeout": { "type": "integer", "description": "Optional timeout in milliseconds. Defaults to 10000." },
\\ "backendNodeId": { "type": "integer", "description": "Optional backend node ID to get the tree for a specific element instead of the document root. 0 is treated as omitted." },
\\ "maxDepth": { "type": "integer", "description": "Optional maximum depth of the tree to return. Useful for exploring high-level structure first." },
- \\ "maxBytes": { "type": "integer", "description": "Optional cap on output size in bytes. Past it, lines are kept by priority (alerts, dialogs, invalid fields and the focused element, then controls and named nodes, then text; list entries breadth-first), and dropped lines are counted in a '[+N more @id]' marker: call tree with backendNodeId=id to read them." }
+ \\ "maxBytes": { "type": "integer", "description": "Optional cap on output size in bytes. Past it, lines are kept by priority (alerts, dialogs, invalid fields and the focused element, then controls and named nodes, then text; list entries breadth-first), and dropped lines are counted in a '[+N more @id]' marker. id is the backendNodeId of the node holding them, often a list item or list that isn't printed itself: call tree with backendNodeId=id to read them." }
\\ }
\\}
),