mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
41 lines
1.2 KiB
JSON
41 lines
1.2 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "SnapshotParams",
|
|
"description": "Parameters for `tool.snapshot` — produce an indented accessibility tree for one tab plus a fresh `@e<N>` ref-store on the extension side (design §4 / §7).",
|
|
"type": "object",
|
|
"required": [
|
|
"session_id"
|
|
],
|
|
"properties": {
|
|
"max_depth": {
|
|
"description": "Cap the depth of the rendered tree (defense against very deep pages). Implementation-defined default; agents typically use `Some(16)` for \"browse and read\" prompts.",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
],
|
|
"format": "uint32",
|
|
"minimum": 0.0
|
|
},
|
|
"max_tokens": {
|
|
"description": "Soft cap on rendered tokens (approximate; extension uses a best-effort heuristic based on character count).",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
],
|
|
"format": "uint32",
|
|
"minimum": 0.0
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"tab_id": {
|
|
"description": "Optional target tab. Defaults to the Agent Window's currently active tab.",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
],
|
|
"format": "int64"
|
|
}
|
|
}
|
|
}
|