豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 52cba5e

Browse files
committed
update
1 parent aeb6473 commit 52cba5e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/tool-reference.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,16 +279,15 @@ so returned values have to JSON-serializable.
279279

280280
- **args** (array) _(optional)_: An optional list of arguments to pass to the function.
281281
- **function** (string) **(required)**: A JavaScript function declaration to be executed by the tool in the currently selected page.
282-
Example without arguments: `() => {
282+
Example without arguments: `() => {
283283
return document.title
284284
}` or `async () => {
285285
return await fetch("example.com")
286286
}`.
287-
Example with arguments: `(el) => {
287+
Example with arguments: `(el) => {
288288
return el.innerText;
289289
}`
290290

291-
292291
---
293292

294293
### `get_console_message`

0 commit comments

Comments
 (0)