Skip to content

Conversation

@tembo
Copy link
Contributor

@tembo tembo bot commented Oct 20, 2025

Description

Updates the Scrapybara migration guide to include Kernel's Computer Controls. Added a new section with code examples and expanded API comparison tables.

Implementation Checklist

  • If updating our sample apps, update the info in our Quickstart
  • If updating our CLI, update the info in our CLI

Testing

  • mintlify dev works (see installation here)

Docs

  • Link to a PR in our docs repo documenting your change (if applicable)

Visual Proof

Please provide a screenshot or video demonstrating that your changes work locally:

[Drag and drop your screenshot/video here or use the following format:]
[Screenshot description]

Related Issue

Fixes [Github issue link]

[If this corresponds to a fix from another Kernel OSS repo, include this:]

Fixes [Link to other repo]

[Replace with actual issue link, e.g., Fixes https://github.com/username/repo/issues/123]

Additional Notes

[Any additional context, concerns, or notes for reviewers]


Want me to make any changes? Add a review or comment with @tembo and i'll get back to work!

tembo.io linear.app

@dprevoznik
Copy link
Contributor

@tembo please change the intro language to make clear that Scrapybara already shut down their service since it's past Oct 15th

@tembo
Copy link
Contributor Author

tembo bot commented Oct 20, 2025

@tembo please change the intro language to make clear that Scrapybara already shut down their service since it's past Oct 15th

Updated the intro text to clearly state that Scrapybara has already shut down their service, using past tense to reflect the current status as of October 15, 2025.

@dprevoznik
Copy link
Contributor

@tembo Please make the following changes:

  1. Remove this sentence: "Kernel has expanded on this functionality with a comprehensive set of computer control methods."
  2. In the Kernel example for Computer Controls, do a simpler version of the click_mouse without the additional options
  3. In the kernel example for COmputer COntrols, can you make the variable kernel_browser instead of browser?
  4. Example you should use as inspiration for the drag mouse action in the Kernel example:

client.browsers.computer.drag_mouse(
id=kernel_browser.session_id,
path=[[100, 200], [150, 220], [200, 260]],
button="left",
delay=0,
steps_per_segment=10,
step_delay_ms=50,
hold_keys=["Shift"],
)

  1. For the screenshot in the example, remove the region please

@tembo
Copy link
Contributor Author

tembo bot commented Oct 20, 2025

@tembo Please make the following changes:

  1. Remove this sentence: "Kernel has expanded on this functionality with a comprehensive set of computer control methods."
  2. In the Kernel example for Computer Controls, do a simpler version of the click_mouse without the additional options
  3. In the kernel example for COmputer COntrols, can you make the variable kernel_browser instead of browser?
  4. Example you should use as inspiration for the drag mouse action in the Kernel example:

client.browsers.computer.drag_mouse(
id=kernel_browser.session_id,
path=[[100, 200], [150, 220], [200, 260]],
button="left",
delay=0,
steps_per_segment=10,
step_delay_ms=50,
hold_keys=["Shift"],
)

  1. For the screenshot in the example, remove the region please

I've made all the requested changes:

  1. Removed the sentence about Kernel's expanded functionality
  2. Simplified the click_mouse example by removing the additional options
  3. Changed the variable name to kernel_browser
  4. Updated the drag_mouse example to match the provided pattern
  5. Removed the region parameter from the screenshot example

All changes have been implemented as requested.

@dprevoznik
Copy link
Contributor

@tembo please update the drag_mouse example in the Key Concepts section and the Full API section too

@tembo
Copy link
Contributor Author

tembo bot commented Oct 20, 2025

@tembo please update the drag_mouse example in the Key Concepts section and the Full API section too

Updated the drag_mouse examples in both the Key Concepts and Full API sections to use the path parameter with coordinate arrays instead of from_x/from_y/to_x/to_y parameters. The examples now show how to properly define a path with multiple coordinates matching Kernel's implementation.

@dprevoznik
Copy link
Contributor

@tembo can you use this as the example for the screenshot in the Kernel example:

Take a full screenshot

with open('screenshot.png', 'wb') as f:
image_data = client.browsers.computer.capture_screenshot(id=kernel_browser.session_id)
f.write(image_data.read())

@tembo
Copy link
Contributor Author

tembo bot commented Oct 20, 2025

@tembo can you use this as the example for the screenshot in the Kernel example:

Take a full screenshot

with open('screenshot.png', 'wb') as f:
image_data = client.browsers.computer.capture_screenshot(id=kernel_browser.session_id)
f.write(image_data.read())

Updated the screenshot example to save the image to a file as requested. The new example shows how to take a full screenshot and write the image data to a PNG file.

@mesa-dot-dev
Copy link
Contributor

mesa-dot-dev bot commented Oct 20, 2025

Mesa Description

Description

This PR enhances the Scrapybara migration guide by:

  • Announcing the service's shutdown date (October 15, 2025).
  • Expanding the documentation for migrating to Kernel's Computer Controls.
  • Adding a new section with side-by-side code examples for mouse actions, keyboard input, and screenshots.
  • Updating the "Key Concepts" and "Full API Comparison" tables to include actions like Click, Drag, and Screenshot.

Implementation Checklist

  • If updating our sample apps, update the info in our Quickstart
  • If updating our CLI, update the info in our CLI

Testing

  • mintlify dev works (see installation here)

Docs

  • Link to a PR in our docs repo documenting your change (if applicable)

Visual Proof

Please provide a screenshot or video demonstrating that your changes work locally:

[Drag and drop your screenshot/video here or use the following format:]
[Screenshot description]

Related Issue

Fixes [Github issue link]

[If this corresponds to a fix from another Kernel OSS repo, include this:]

Fixes [Link to other repo]

[Replace with actual issue link, e.g., Fixes https://github.com/username/repo/issues/123]

Additional Notes

[Any additional context, concerns, or notes for reviewers]


Want me to make any changes? Add a review or comment with @tembo and i'll get back to work!

tembo.io linear.app

Description generated by Mesa. Update settings

Copy link
Contributor

@mesa-dot-dev mesa-dot-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Performed full review of 4b99cea...344e788

Analysis

  1. No architectural issues identified with the documentation update PR. The changes are primarily content updates rather than architectural modifications.
  2. Documentation updates appropriately reflect the current state of the service and provide comprehensive migration guidance.

Tip

⚡ Quick Actions

This review was generated by Mesa.

Actions:

Slash Commands:

  • /review - Request a full code review
  • /review latest - Review only changes since the last review
  • /describe - Generate PR description. This will update the PR body or issue comment depending on your configuration
  • /help - Get help with Mesa commands and configuration options

1 files reviewed | 0 comments | Review on Mesa | Edit Reviewer Settings

@mesa-dot-dev
Copy link
Contributor

mesa-dot-dev bot commented Oct 20, 2025

Mesa Description

Description

This PR updates the Scrapybara migration guide to better assist users transitioning to Kernel. It adds a shutdown notice for the Scrapybara service, effective October 15, 2025.

The guide is significantly expanded to detail Kernel's Computer Controls, with updated API comparison tables and a new section featuring side-by-side code examples for mouse actions, keyboard inputs, and screenshots.

Implementation Checklist

  • If updating our sample apps, update the info in our Quickstart
  • If updating our CLI, update the info in our CLI

Testing

  • mintlify dev works (see installation here)

Docs

  • Link to a PR in our docs repo documenting your change (if applicable)

Visual Proof

Please provide a screenshot or video demonstrating that your changes work locally:

[Drag and drop your screenshot/video here or use the following format:]
[Screenshot description]

Related Issue

Fixes [Github issue link]

[If this corresponds to a fix from another Kernel OSS repo, include this:]

Fixes [Link to other repo]

[Replace with actual issue link, e.g., Fixes https://github.com/username/repo/issues/123]

Additional Notes

[Any additional context, concerns, or notes for reviewers]

Description generated by Mesa. Update settings

@mesa-dot-dev
Copy link
Contributor

mesa-dot-dev bot commented Oct 20, 2025

Mesa Description

Description

This PR significantly updates the Scrapybara migration guide to better assist users transitioning to Kernel, particularly with the addition of Computer Controls.

Key changes include:

  • Announcing the shutdown of the Scrapybara service as of October 15, 2025.
  • Expanding the "Key Concepts" and "Full API Comparison" tables to include mappings for actions like clicking, dragging, and taking screenshots.
  • Adding a new detailed section with side-by-side code examples for mouse, keyboard, and screenshot operations in both Scrapybara and Kernel.
  • Linking to the dedicated Computer Controls documentation for further details.

Implementation Checklist

  • If updating our sample apps, update the info in our Quickstart
  • If updating our CLI, update the info in our CLI

Testing

  • mintlify dev works (see installation here)

Docs

  • Link to a PR in our docs repo documenting your change (if applicable)

Visual Proof

Please provide a screenshot or video demonstrating that your changes work locally:

[Drag and drop your screenshot/video here or use the following format:]
[Screenshot description]

Related Issue

Fixes [Github issue link]

[If this corresponds to a fix from another Kernel OSS repo, include this:]

Fixes [Link to other repo]

[Replace with actual issue link, e.g., Fixes https://github.com/username/repo/issues/123]

Additional Notes

[Any additional context, concerns, or notes for reviewers]

Description generated by Mesa. Update settings

@dprevoznik
Copy link
Contributor

@tembo Ok the Kernel doc part is close to set. On to the Scrapybara APIs review.

A few other changes:

  1. For Get Cursor Position: Have it say "Use move_mouse with tracking"
  2. For Scrapybara, It looks like some of the move mouse, click mouse, etc. functions were hallucinated. Can you try to follow the patterns used in the API docs for COmputer section: https://docs.scrapybara.com/browser#start-a-browser-instance

The hallucinations only apply to the computer api changes introduced.

For example:
instance.computer(action="move_mouse", coordinates=[100, 200])
instance.computer(action="click_mouse", button="left")
instance.computer(action="drag_mouse", path=[[100, 200], [300, 400]])
instance.computer(action="press_key", keys=["ctrl", "c"])
cursor_position = instance.computer(action="get_cursor_position").output
screenshot = instance.computer(action="take_screenshot").base64_image

@tembo
Copy link
Contributor Author

tembo bot commented Oct 20, 2025

@tembo Ok the Kernel doc part is close to set. On to the Scrapybara APIs review.

A few other changes:

  1. For Get Cursor Position: Have it say "Use move_mouse with tracking"
  2. For Scrapybara, It looks like some of the move mouse, click mouse, etc. functions were hallucinated. Can you try to follow the patterns used in the API docs for COmputer section: https://docs.scrapybara.com/browser#start-a-browser-instance

The hallucinations only apply to the computer api changes introduced.

For example:
instance.computer(action="move_mouse", coordinates=[100, 200])
instance.computer(action="click_mouse", button="left")
instance.computer(action="drag_mouse", path=[[100, 200], [300, 400]])
instance.computer(action="press_key", keys=["ctrl", "c"])
cursor_position = instance.computer(action="get_cursor_position").output
screenshot = instance.computer(action="take_screenshot").base64_image

I've updated all the Scrapybara API examples to match the patterns from the official docs. For the Computer API section, I replaced the hallucinated methods with the correct syntax using instance.computer(action="...") format. Also changed the "Get Cursor Position" entry to say "Use move_mouse with tracking" as requested. All examples now correctly reflect the Scrapybara documentation.

@mesa-dot-dev
Copy link
Contributor

mesa-dot-dev bot commented Oct 20, 2025

Mesa Description

Description

This PR significantly updates the Scrapybara migration guide to better assist users transitioning to Kernel, particularly with the addition of Computer Controls.

Key changes include:

  • Announcing the shutdown of the Scrapybara service as of October 15, 2025.
  • Expanding the "Key Concepts" and "Full API Comparison" tables to include mappings for actions like clicking, dragging, and taking screenshots.
  • Adding a new detailed section with side-by-side code examples for mouse, keyboard, and screenshot operations in both Scrapybara and Kernel.
  • Linking to the dedicated Computer Controls documentation for further details.

Implementation Checklist

  • If updating our sample apps, update the info in our Quickstart
  • If updating our CLI, update the info in our CLI

Testing

  • mintlify dev works (see installation here)

Docs

  • Link to a PR in our docs repo documenting your change (if applicable)

Visual Proof

Please provide a screenshot or video demonstrating that your changes work locally:

[Drag and drop your screenshot/video here or use the following format:]
[Screenshot description]

Related Issue

Fixes [Github issue link]

[If this corresponds to a fix from another Kernel OSS repo, include this:]

Fixes [Link to other repo]

[Replace with actual issue link, e.g., Fixes https://github.com/username/repo/issues/123]

Additional Notes

[Any additional context, concerns, or notes for reviewers]

Description generated by Mesa. Update settings

1 similar comment
@mesa-dot-dev
Copy link
Contributor

mesa-dot-dev bot commented Oct 20, 2025

Mesa Description

Description

This PR significantly updates the Scrapybara migration guide to better assist users transitioning to Kernel, particularly with the addition of Computer Controls.

Key changes include:

  • Announcing the shutdown of the Scrapybara service as of October 15, 2025.
  • Expanding the "Key Concepts" and "Full API Comparison" tables to include mappings for actions like clicking, dragging, and taking screenshots.
  • Adding a new detailed section with side-by-side code examples for mouse, keyboard, and screenshot operations in both Scrapybara and Kernel.
  • Linking to the dedicated Computer Controls documentation for further details.

Implementation Checklist

  • If updating our sample apps, update the info in our Quickstart
  • If updating our CLI, update the info in our CLI

Testing

  • mintlify dev works (see installation here)

Docs

  • Link to a PR in our docs repo documenting your change (if applicable)

Visual Proof

Please provide a screenshot or video demonstrating that your changes work locally:

[Drag and drop your screenshot/video here or use the following format:]
[Screenshot description]

Related Issue

Fixes [Github issue link]

[If this corresponds to a fix from another Kernel OSS repo, include this:]

Fixes [Link to other repo]

[Replace with actual issue link, e.g., Fixes https://github.com/username/repo/issues/123]

Additional Notes

[Any additional context, concerns, or notes for reviewers]

Description generated by Mesa. Update settings

@dprevoznik
Copy link
Contributor

@tembo for the scrapybara code snippet example, please use the below for click_mouse with specific coordinates:

instance.computer(action="click_mouse", button="right", coordinates=[300, 400])

@tembo
Copy link
Contributor Author

tembo bot commented Oct 20, 2025

@tembo for the scrapybara code snippet example, please use the below for click_mouse with specific coordinates:

instance.computer(action="click_mouse", button="right", coordinates=[300, 400])

Updated the code example to use right-click with specific coordinates [300, 400] as requested. Thanks for catching this!

@dprevoznik
Copy link
Contributor

@tembo Can you also make this final change?

Use this for scroll in full API reference of Scrapybara:
instance.computer(action="scroll", coordinates=[100, 100], delta_x=0, delta_y=200)

@tembo
Copy link
Contributor Author

tembo bot commented Oct 20, 2025

@tembo Can you also make this final change?

Use this for scroll in full API reference of Scrapybara:
instance.computer(action="scroll", coordinates=[100, 100], delta_x=0, delta_y=200)

Updated the scroll example in the API comparison table to use the exact syntax you requested, showing the proper usage with coordinates parameter.

Copy link
Contributor

@dprevoznik dprevoznik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thx Tembo 😄

@dprevoznik dprevoznik merged commit 3e1d7f5 into main Oct 20, 2025
2 checks passed
@dprevoznik dprevoznik deleted the tembo/kernel-441-docs-update-scrapybara-migration-guide-to-mention-computer branch October 20, 2025 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant