MCPcopy Create free account

hub / github.com/anthropics/claude-quickstarts / functions

Functions710 in github.com/anthropics/claude-quickstarts

↓ 3 callersFunctiontool_output_callback
Handle tool execution results.
browser-use-demo/browser_use_demo/streamlit.py:473
↓ 3 callersMethodwrite_file
Write the content of a file to a given path; raise a ToolError if an error occurs.
computer-use-demo/computer_use_demo/tools/edit.py:254
↓ 2 callersMethod__call__
( self, *, action: Action_20241022, text: str | None = None, coordinat
computer-use-demo/computer_use_demo/tools/computer.py:128
↓ 2 callersMethod__init__
(self)
agents/utils/connections.py:17
↓ 2 callersFunction_advisor_tool_param
()
computer-use-best-practices/computer_use/loop.py:164
↓ 2 callersFunction_autocompaction_edit
()
computer-use-best-practices/computer_use/loop.py:154
↓ 2 callersFunction_execute_single_tool
Execute a single tool and handle errors.
agents/utils/tool_util.py:7
↓ 2 callersFunction_format_content_item
Format a single content item using the appropriate formatter. Uses the Strategy pattern to dispatch to the correct formatter based on content typ
browser-use-demo/browser_use_demo/streamlit.py:391
↓ 2 callersFunction_img
(tag: str)
computer-use-best-practices/tests/test_formatters.py:9
↓ 2 callersFunction_lookup_model_conf
Resolve a model ID to its config. Tries an exact match first, then the longest known key that the ID starts with, so undated aliases, newly d
computer-use-demo/computer_use_demo/streamlit.py:133
↓ 2 callersFunction_maybe_prepend_system_tool_result
(result: ToolResult, result_text: str)
computer-use-demo/computer_use_demo/loop.py:349
↓ 2 callersMethod_press_key
Press a keyboard key or key combination.
browser-use-demo/browser_use_demo/tools/browser.py:569
↓ 2 callersFunction_render_api_response
Render an API response to a streamlit tab
computer-use-demo/computer_use_demo/streamlit.py:560
↓ 2 callersFunction_reset_model
()
computer-use-demo/computer_use_demo/streamlit.py:220
↓ 2 callersFunction_reset_model_conf
()
computer-use-demo/computer_use_demo/streamlit.py:227
↓ 2 callersMethod_run
(self, source: str, interpreter: list[str], suffix: str)
computer-use-best-practices/computer_use/tools/shell.py:87
↓ 2 callersFunction_run_sandboxed
Run argv under sandbox-exec, capping both wall-clock time and captured output. stdout and stderr are merged so the cap applies to the total.
computer-use-best-practices/computer_use/tools/shell.py:28
↓ 2 callersMethod_screenshot
(self, page: Page, output: str | None = None)
computer-use-best-practices/computer_use/tools/browser.py:142
↓ 2 callersFunction_strip_advisor
Remove advisor server_tool_use and advisor_tool_result blocks in place. Required when dropping the advisor from `tools` mid-conversation; the API
computer-use-best-practices/computer_use/loop.py:177
↓ 2 callersFunctionaccessibility_granted
()
computer-use-best-practices/computer_use/preflight.py:65
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
financial-data-analyst/hooks/use-toast.ts:61
↓ 2 callersFunctionbuild_tools
(scratch_dir: Path | None = None)
computer-use-best-practices/computer_use/__main__.py:30
↓ 2 callersMethodexecute
(self, *, command: str, **_: Any)
computer-use-best-practices/computer_use/tools/shell.py:118
↓ 2 callersMethodexecute
(self, **kwargs: Any)
computer-use-best-practices/computer_use/tools/editor.py:86
↓ 2 callersMethodextract_image
Extract an image and return a file reference.
browser-use-demo/browser_use_demo/streamlit.py:181
↓ 2 callersFunctionfn
()
computer-use-best-practices/tests/test_loop.py:86
↓ 2 callersFunctionformat_transcript_for_download
Format conversation messages into a readable transcript. Args: messages: List of message dictionaries from session state include_
browser-use-demo/browser_use_demo/streamlit.py:291
↓ 2 callersFunctiongetRole
(element)
browser-use-demo/browser_use_demo/browser_tool_utils/browser_dom_script.js:24
↓ 2 callersMethodget_scale_factors
Calculate scale factors for converting Claude coordinates to viewport coordinates. Args: viewport_width: Actual browser
browser-use-demo/browser_use_demo/tools/coordinate_scaling.py:71
↓ 2 callersFunctionhandleSubmit
( event: React.FormEvent<HTMLFormElement> | string, )
customer-support-agent/components/ChatArea.tsx:402
↓ 2 callersFunctionisInteractive
(element)
browser-use-demo/browser_use_demo/browser_tool_utils/browser_dom_script.js:191
↓ 2 callersFunctionload_from_storage
Load data from a file in the storage directory.
computer-use-demo/computer_use_demo/streamlit.py:510
↓ 2 callersFunctionload_prompt
Load a prompt template from the prompts directory.
autonomous-coding/prompts.py:15
↓ 2 callersFunctionn_tokens_for_px
ceil(px / px_per_token) using integer math.
computer-use-best-practices/computer_use/image.py:29
↓ 2 callersFunctionoutput_callback
Handle agent output - both text and tool use.
browser-use-demo/browser_use_demo/streamlit.py:465
↓ 2 callersMethodscale_coordinate_list
Scale a coordinate pair list/tuple. Args: coords: [x, y] coordinate pair viewport_width: Actual browser view
browser-use-demo/browser_use_demo/tools/coordinate_scaling.py:156
↓ 2 callersMethodscale_coordinates
Scale coordinates from Claude's vision to actual viewport. Args: x: X coordinate from Claude y: Y coordinate
browser-use-demo/browser_use_demo/tools/coordinate_scaling.py:107
↓ 2 callersFunctionscreen_recording_granted
()
computer-use-best-practices/computer_use/preflight.py:61
↓ 2 callersFunctionsetup_state
()
computer-use-demo/computer_use_demo/streamlit.py:183
↓ 2 callersFunctiontest_hook
Test a single command against the security hook.
autonomous-coding/test_security.py:21
↓ 2 callersMethodto_hosted_param
Return the server-hosted tool param. The server supplies the description and input_schema; we only declare the type and the display si
computer-use-best-practices/computer_use/tools/computer.py:195
↓ 2 callersMethodto_param
(cls)
computer-use-best-practices/computer_use/tools/base.py:56
↓ 2 callersMethodto_params
( self, )
computer-use-demo/computer_use_demo/tools/collection.py:24
↓ 2 callersFunctiontool
(tmp_path: Path)
computer-use-best-practices/tests/test_editor.py:11
↓ 2 callersFunctiontruncateSnippet
(text: string)
customer-support-agent/components/RightSidebar.tsx:33
↓ 2 callersFunctionuseChart
()
financial-data-analyst/components/ui/chart.tsx:32
↓ 2 callersFunctionvalidate_chmod_command
Validate chmod commands - only allow making files executable with +x. Returns: Tuple of (is_allowed, reason_if_blocked)
autonomous-coding/security.py:209
↓ 2 callersFunctionvalidate_init_script
Validate init.sh script execution - only allow ./init.sh. Returns: Tuple of (is_allowed, reason_if_blocked)
autonomous-coding/security.py:254
↓ 1 callersMethod__init__
(self)
computer-use-demo/computer_use_demo/tools/bash.py:19
↓ 1 callersMethod__init__
(self)
agents/tools/file_tools.py:14
↓ 1 callersMethod_agent_loop
Process user input and handle tool calls in a loop
agents/agent.py:96
↓ 1 callersFunction_atr
(text: str = "plan")
computer-use-best-practices/tests/test_advisor.py:15
↓ 1 callersMethod_click
Handle various click actions.
browser-use-demo/browser_use_demo/tools/browser.py:457
↓ 1 callersMethod_create
(self, target: Path, file_text: str)
computer-use-best-practices/computer_use/tools/editor.py:133
↓ 1 callersFunction_create_circular_reference
Helper to create a message with circular reference.
browser-use-demo/tests/conftest.py:153
↓ 1 callersMethod_create_rw_context
Create the read/write context based on connection type.
agents/utils/connections.py:23
↓ 1 callersMethod_drag
Perform a drag operation.
browser-use-demo/browser_use_demo/tools/browser.py:693
↓ 1 callersMethod_edit_file
Make targeted changes to a file.
agents/tools/file_tools.py:232
↓ 1 callersMethod_ensure_browser
Launch browser and ensure page is ready.
browser-use-demo/browser_use_demo/tools/browser.py:218
↓ 1 callersMethod_ensure_page
(self)
computer-use-best-practices/computer_use/tools/browser.py:126
↓ 1 callersFunction_ensure_theme
Seed .streamlit/config.toml from the shared theme on first run only, so a user's local edits survive.
computer-use-best-practices/dev_ui/trajectory_viewer/app.py:19
↓ 1 callersMethod_execute_js
Execute JavaScript code in the page context. Returns the result of the last expression.
browser-use-demo/browser_use_demo/tools/browser.py:1079
↓ 1 callersMethod_find
Find elements on the page matching the search query using AI.
browser-use-demo/browser_use_demo/tools/browser.py:903
↓ 1 callersMethod_form_input
Fill a form field with a value.
browser-use-demo/browser_use_demo/tools/browser.py:1047
↓ 1 callersFunction_format_message_content
Format message content based on its type. This is the main entry point that handles different content structures.
browser-use-demo/browser_use_demo/streamlit.py:404
↓ 1 callersMethod_get_page_text
Extract ALL text content from the current page. USE THIS to read articles, posts, or any text content. Returns the actual tex
browser-use-demo/browser_use_demo/tools/browser.py:857
↓ 1 callersMethod_hover
Move the mouse cursor to a position without clicking. Useful for revealing tooltips, dropdown menus, or triggering hover states.
browser-use-demo/browser_use_demo/tools/browser.py:750
↓ 1 callersFunction_inject_prompt_caching
Set cache breakpoints for the 3 most recent turns one cache breakpoint is left for tools/system prompt, to be shared across sessions
computer-use-demo/computer_use_demo/loop.py:287
↓ 1 callersMethod_insert
(self, target: Path, insert_line: int | None, new: str | None)
computer-use-best-practices/computer_use/tools/editor.py:154
↓ 1 callersFunction_interrupted_result
(tool_use_id: str)
computer-use-best-practices/computer_use/loop.py:322
↓ 1 callersMethod_list_files
List files in a directory.
agents/tools/file_tools.py:104
↓ 1 callersFunction_make_api_tool_result
Convert an agent ToolResult to an API ToolResultBlockParam.
computer-use-demo/computer_use_demo/loop.py:313
↓ 1 callersFunction_make_client
(provider: Provider)
computer-use-best-practices/computer_use/loop.py:219
↓ 1 callersFunction_make_image_pruner
(max_message_mb: float | None = None)
computer-use-best-practices/computer_use/loop.py:229
↓ 1 callersFunction_maybe_filter_to_n_most_recent_images
With the assumption that images are screenshots that are of diminishing value as the conversation progresses, remove all but the final `image
computer-use-demo/computer_use_demo/loop.py:215
↓ 1 callersMethod_mouse_down
Press mouse button down.
browser-use-demo/browser_use_demo/tools/browser.py:718
↓ 1 callersMethod_mouse_up
Release mouse button.
browser-use-demo/browser_use_demo/tools/browser.py:734
↓ 1 callersMethod_navigate
Navigate to a URL.
browser-use-demo/browser_use_demo/tools/browser.py:397
↓ 1 callersMethod_read_file
Read a file from disk. Args: path: Path to the file to read max_lines: Maximum number of lines to read (0 mea
agents/tools/file_tools.py:74
↓ 1 callersMethod_read_page
Extract the DOM tree with structured content and element references. USE THIS to analyze page structure and find specific elements.
browser-use-demo/browser_use_demo/tools/browser.py:814
↓ 1 callersMethod_render_assistant_content
Render assistant message content. Handles both single items and lists of content blocks, properly routing tool results to the TOOL se
browser-use-demo/browser_use_demo/message_renderer.py:265
↓ 1 callersFunction_render_error
(error: Exception)
computer-use-demo/computer_use_demo/streamlit.py:584
↓ 1 callersMethod_render_message_by_role
Route message rendering based on role. Args: message: Message dictionary containing role and content
browser-use-demo/browser_use_demo/message_renderer.py:225
↓ 1 callersMethod_render_message_content
Render the actual message content based on its type. Args: message: The message content to render
browser-use-demo/browser_use_demo/message_renderer.py:112
↓ 1 callersMethod_render_stored_tool_result
Render a tool result that was stored in session state. Args: message: Dictionary containing the tool_use_id reference
browser-use-demo/browser_use_demo/message_renderer.py:203
↓ 1 callersMethod_render_tool_result
Render a tool result with output, error, and optional image. Args: tool_result: The ToolResult object to render
browser-use-demo/browser_use_demo/message_renderer.py:134
↓ 1 callersMethod_render_tool_use
Render a tool use message with coordinate scaling for browser tools. Args: message: Dictionary containing tool use information
browser-use-demo/browser_use_demo/message_renderer.py:188
↓ 1 callersMethod_render_user_content
Render user message content. Handles both single items and lists of content blocks, skipping image blocks in conversation history.
browser-use-demo/browser_use_demo/message_renderer.py:240
↓ 1 callersFunction_request_accessibility
Same for Accessibility: AXIsProcessTrustedWithOptions with the prompt option pops the system dialog and adds <app> to the list.
computer-use-best-practices/computer_use/preflight.py:77
↓ 1 callersFunction_request_screen_recording
Trigger the system "<app> would like to record this computer's screen" dialog, which also adds <app> to the Screen Recording list (unchecked) so
computer-use-best-practices/computer_use/preflight.py:69
↓ 1 callersMethod_resolve
Resolve `path` inside the scratch root; raise if it would escape.
computer-use-best-practices/computer_use/tools/editor.py:79
↓ 1 callersFunction_response_to_params
( response: BetaMessage, )
computer-use-demo/computer_use_demo/loop.py:264
↓ 1 callersMethod_rewrite_images
Replace inline base64 image sources with on-disk file paths.
computer-use-best-practices/computer_use/trajectory.py:41
↓ 1 callersMethod_run_test
Run a single test and track results. Args: test_name: Name of the test test_func: Test function to execute
agents/test_message_params.py:35
↓ 1 callersFunction_safe_substitute
Replace ``{name}`` placeholders without ``str.format``'s attribute/index traversal (which would let a user-supplied template reach ``__globals__``
computer-use-best-practices/dev_ui/localization_demo/server.py:59
↓ 1 callersMethod_scale_browser_coordinates
Apply coordinate scaling to browser tool inputs for display. This ensures the displayed coordinates match what the browser tool will actually
browser-use-demo/browser_use_demo/message_renderer.py:37
↓ 1 callersMethod_scale_to_image
(self, screen_x: int, screen_y: int)
computer-use-best-practices/computer_use/tools/computer.py:216
↓ 1 callersMethod_scroll
Scroll the page or element.
browser-use-demo/browser_use_demo/tools/browser.py:616
↓ 1 callersMethod_scroll_to
Scroll to a specific element.
browser-use-demo/browser_use_demo/tools/browser.py:666
↓ 1 callersFunction_should_nudge_batch
Only nudge after a lone click/type/key/scroll/wait, not after screenshots or batch calls (which is what the model is told to do anyway).
computer-use-best-practices/computer_use/loop.py:310
← previousnext →101–200 of 710, ranked by callers