dsh-builtin-browser 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1087,7 +1087,7 @@ export function apply(ctx: Context, config: Config = {}): void {
1087
1087
  description: 'Capture the current shared-browser page as a screenshot (PNG default, JPEG optional). Use for visual confirmation of layout, charts, designs, or CAPTCHAs, or to feed a vision tool (read_image) that locates elements visually. Supports full-page capture, save-to-file, JPEG encoding, and downscaling (maxWidth/maxHeight) to cut vision-tool token cost. JPEG is only available on the self-hosted native path; the desktop-shell path returns PNG.',
1088
1088
  parameters: {
1089
1089
  fullPage: { type: 'boolean', description: 'Capture the full scrollable page instead of the viewport (default false).' },
1090
- savePath: { type: 'string', description: 'Absolute file path to also save the image to (e.g. for read_image vision location).' },
1090
+ savePath: { type: 'string', description: 'Absolute file path to also save the image to (e.g. for read_image vision location). Must resolve inside the configured downloadDir (default: the system Downloads folder, localized names such as ~/下载 included); an existing file is never overwritten.' },
1091
1091
  format: { type: 'string', enum: ['png', 'jpeg'], description: 'Image format (default png; jpeg is self-hosted native path only).' },
1092
1092
  quality: { type: 'number', description: 'JPEG quality 1-100 (default 80); ignored for PNG.' },
1093
1093
  maxWidth: { type: 'number', description: 'Downscale to fit within this width (aspect preserved).' },
@@ -1354,7 +1354,7 @@ export function apply(ctx: Context, config: Config = {}): void {
1354
1354
  description: 'Download a URL to a local file, keeping the browser session\'s cookies and login state. Use for fetching files behind authentication or from the current page context. Available on the self-hosted browser; the desktop shell delegates downloads to the real browser UI.',
1355
1355
  parameters: {
1356
1356
  url: { type: 'string', required: true, description: 'The URL to download.' },
1357
- savePath: { type: 'string', required: true, description: 'Absolute path of the file to write.' },
1357
+ savePath: { type: 'string', required: true, description: 'Absolute path of the file to write. Must resolve inside the configured downloadDir (default: the system Downloads folder, localized names such as ~/下载 included); an existing file is never overwritten.' },
1358
1358
  },
1359
1359
  output: {
1360
1360
  schema: { type: 'object', additionalProperties: false, properties: { path: { type: 'string', required: true } } },