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

Commit 24db9dd

Browse files
kajanlOrKoN
andauthored
fix: update evaluateScript description formatting (#880)
Fix formatting in the description of evaluateScript. --------- Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
1 parent acdb5c9 commit 24db9dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/tool-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@
292292

293293
### `evaluate_script`
294294

295-
**Description:** Evaluate a JavaScript function inside the currently selected page. Returns the response as JSON
296-
so returned values have to JSON-serializable.
295+
**Description:** Evaluate a JavaScript function inside the currently selected page. Returns the response as JSON,
296+
so returned values have to be JSON-serializable.
297297

298298
**Parameters:**
299299

src/tools/script.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import {defineTool} from './ToolDefinition.js';
1212

1313
export const evaluateScript = defineTool({
1414
name: 'evaluate_script',
15-
description: `Evaluate a JavaScript function inside the currently selected page. Returns the response as JSON
16-
so returned values have to JSON-serializable.`,
15+
description: `Evaluate a JavaScript function inside the currently selected page. Returns the response as JSON,
16+
so returned values have to be JSON-serializable.`,
1717
annotations: {
1818
category: ToolCategory.DEBUGGING,
1919
readOnlyHint: false,

0 commit comments

Comments
 (0)