AI agent instructions
AI agent instructions
session.execute().
Navigation Actions
Goto
Navigate to a URL.goto.py
url(str): The URL to navigate to
GotoNewTab
Open a URL in a new browser tab.goto_new_tab.py
url(str): The URL to open in a new tab
SwitchTab
Switch to a different browser tab.switch_tab.py
tab_index(int): Zero-based index of the tab to switch to
GoBack
Navigate back to the previous page.go_back.py
GoForward
Navigate forward in browser history.go_forward.py
Reload
Reload the current page.reload.py
Interaction Actions
Click
Click on an element.click.py
selector(str): CSS selector for the elementid(str): Element IDtext(str): Exact text contentaria_label(str): ARIA label attributeplaceholder(str): Placeholder texttitle(str): Title attribute
Fill
Fill a text input or textarea.fill.py
selector(str): CSS selector for the inputid(str): Element IDplaceholder(str): Placeholder textaria_label(str): ARIA labelvalue(str): The text to fill
Check
Check or uncheck a checkbox.check.py
selector(str): CSS selector for the checkboxid(str): Element IDchecked(bool): True to check, False to uncheck
SelectDropdownOption
Select an option from a dropdown.select_dropdown_option.py
selector(str): CSS selector for the select elementoption_text(str): Visible text of the optionoption_value(str): Value attribute of the option
PressKey
Press a keyboard key.press_key.py
key(str): Key name (e.g., “Enter”, “Escape”, “Tab”, “ArrowDown”)
EvaluateJs
Evaluate JavaScript code on the current page and return the result.session.evaluate_js(code) returns the evaluated string directly (objects and arrays as JSON); a failing script raises with the actual JavaScript error.
eval_js.py
code(str): The JavaScript code to evaluate on the page
Fetch
Issue an HTTP request from the page the session is on.session.fetch(url) runs the browser’s own fetch() inside the current page, so the request carries the page’s cookies, the session’s proxy and the browser’s network fingerprint. A relative URL resolves against the current page, which also keeps it same-origin; a cross-origin URL is subject to CORS as in any browser tab, so goto the target origin first. The result is a standard requests.Response: status_code, ok, headers, text, url, json() and raise_for_status() work as usual.
fetch.py
url(str): The URL to request, absolute or relative to the current pagemethod(str): HTTP method,GETby defaultheaders(dict): Extra request headersparams(dict): Query parameters appended to the URLjson(Any): Body serialised as JSON with anapplication/jsoncontent typedata(str | dict): Body sent verbatim, or form-encoded when a dicttimeout(float): Seconds before the request is aborted
Scrolling Actions
ScrollUp
Scroll up on the page.scroll_up.py
ScrollDown
Scroll down on the page.scroll_down.py
File Actions
UploadFile
Upload a file to a file input.upload_file.py
selector(str): CSS selector for the file inputid(str): Element IDfile_path(str): Path to the file to upload
DownloadFile
Download a file from a link.download_file.py
selector(str): CSS selector for the download linkid(str): Element ID
Wait Action
Wait
Pause execution for a specified duration.wait.py
duration(int): Time to wait in milliseconds
Tip: Use sparingly. Notte automatically waits for page loads and element visibility. Only use Wait for specific timing requirements.
Data Extraction
Scrape
Extract data from the current page.scrape.py
instructions(str): Natural language extraction instructionsresponse_format(type[BaseModel]): Pydantic model for structured outputonly_main_content(bool): Extract only main content, ignore headers/footers
Communication Actions
SmsRead
Read SMS messages from a persona’s phone number.sms_read.py
persona_id(str): Persona ID with phone number
EmailRead
Read emails from a persona’s email address.email_read.py
persona_id(str): Persona ID with email address
Action Patterns
Chaining Actions
Execute multiple actions in sequence:action_chaining.py
Error Handling
Handle action failures:error_handling.py
Conditional Actions
Execute actions based on conditions:conditional_actions.py
Selector Strategies
CSS Selectors
Most flexible and commonly used:css_selectors.py
Direct Attributes
Use direct attribute parameters when available:direct_attributes.py
Best Practices
Prefer stable selectors:stable_selectors.py
specific_selectors.py
Common Workflows
Form Submission
form_submission.py
Search and Extract
search_extract.py
Multi-Tab Workflow
multi_tab.py
File Upload and Download
file_upload_download.py
Next Steps
Session Configuration
Configure session behavior
Session Lifecycle
Manage session states
SDK Actions Reference
Detailed API documentation
File Storage
Upload and download files in sessions