MCPcopy Create free account

hub / github.com/BAAI-Agents/Cradle / functions

Functions1,182 in github.com/BAAI-Agents/Cradle

Methodmaximize
Maximize the target window
cradle/gameio/gui_utils.py:200
Functionmin_distance_from_center
(contour)
cradle/environment/rdr2/composite_skills/navigation.py:133
Methodminimize
Minimize the target window
cradle/gameio/gui_utils.py:184
Functionmount_horse
Needs to be close to the horse. Mounts the horse by pressing the "e" key.
cradle/environment/rdr2/atomic_skills/move.py:50
Functionmouse_confirm_item
Confirms the selection item by clicking the left mouse button once.
cradle/environment/rdr2/atomic_skills/trade_utils.py:44
Functionmouse_drag
Use the mouse to drag from a source position to a target position. The type of drag depends on the mouse button used. The mouse is moved to t
cradle/environment/feishu/atomic_skills/interact.py:63
Functionmouse_drag
Use the mouse to drag from a source position to a target position. The type of drag depends on the mouse button used. The mouse is moved to t
cradle/environment/software/atomic_skills/base.py:60
Functionmouse_drag
Use the mouse to drag from a source position to a target position. The type of drag depends on the mouse button used. The mouse is moved to t
cradle/environment/capcut/atomic_skills/interact.py:46
Functionmouse_drag
Use the mouse to drag from a source position to a target position. The type of drag depends on the mouse button used. The mouse is moved to t
cradle/environment/outlook/atomic_skills/interact.py:90
Methodmouse_drag
(self, x1, y1, x2, y2)
cradle/gameio/io_env.py:291
Functionmouse_drag_with_label
Drag from the source label id of bounding box to the target label id of bounding box. Parameters: - source_label_id: The numerical label
cradle/environment/capcut/composite_skills/aug_interact.py:41
Functionmouse_scroll_down
Scroll down a number of clicks using the mouse wheel. Down means both rolling the mouse wheel back and scrolling towards the bottom of the screen
cradle/environment/software/atomic_skills/base.py:83
Functionmouse_scroll_down
Scroll down a number of clicks using the mouse wheel. Down means both rolling the mouse wheel back and scrolling towards the bottom of the screen
cradle/environment/xiuxiu/atomic_skills/interact.py:122
Functionmouse_scroll_up
Scroll up a number of clicks using the mouse wheel. Up means both rolling the mouse wheel forward and scrolling towards the top of the screen.
cradle/environment/software/atomic_skills/base.py:95
Functionmouse_select_item
Move the mouse to a specific location to select the item in the game. Parameters: - x: The normalized abscissa of the pixel. - y: The
cradle/environment/rdr2/atomic_skills/trade_utils.py:33
Functionmouse_use_tool
Adjusts the player's orientation towards the specified position (x, y) on the screen, then simulates the action of using or interacting with tool
cradle/environment/stardew/atomic_skills/basic_skills.py:27
Functionmove_mouse_to_position
Moves the mouse to the specified x, y corrdinates inside the application window. Parameters: - x: The normalized x-coordinate of the tar
cradle/environment/software/atomic_skills/base.py:13
Functionnavigate_path
Navigates an existing waypoint path in the minimap. Parameters: - iterations: How many maximum calculation loops to navigate. Default va
cradle/environment/rdr2/composite_skills/navigation.py:24
Functionnc
(c)
docs/js/fontawesome.all.min.js:5
Methodnew_debug
(message)
cradle/provider/base/base_provider.py:53
Methodnew_error
(message)
cradle/provider/base/base_provider.py:80
Methodnew_write
(message)
cradle/provider/base/base_provider.py:26
Methodnum_tokens_from_messages
Return the number of tokens used by a list of messages. Borrowed from https://github.com/openai/openai-cookbook/blob/main/examples/How_to_coun
cradle/provider/llm/claude.py:282
Methodnum_tokens_from_messages
Return the number of tokens used by a list of messages. Borrowed from https://github.com/openai/openai-cookbook/blob/main/examples/How_to_coun
cradle/provider/llm/openai.py:438
Methodnum_tokens_from_messages
Return the number of tokens used by a list of messages. Borrowed from https://github.com/openai/openai-cookbook/blob/main/examples/How_to_coun
cradle/provider/llm/restful_claude.py:272
Functionoffset
(element)
docs/js/bulma-carousel.js:123
Functionopen_chatbox
Opening the chatbox.
cradle/environment/stardew/atomic_skills/basic_skills.py:100
Functionopen_electricity_menu
The function to open the electricity options in the lower menu bar for further determination of which types of power facility to build.
cradle/environment/skylines/atomic_skills/basic_skills.py:22
Functionopen_index
Opens the map index by pressing the "space" key, after the map is open.
cradle/environment/rdr2/atomic_skills/map.py:58
Functionopen_journal
Opening the journal.
cradle/environment/stardew/atomic_skills/basic_skills.py:72
Functionopen_map
Opens the in-game map.
cradle/environment/rdr2/atomic_skills/map.py:13
Functionopen_map
Opening the map.
cradle/environment/stardew/atomic_skills/basic_skills.py:86
Functionopen_menu
Opening the menu.
cradle/environment/stardew/atomic_skills/basic_skills.py:58
Functionopen_roads_menu
The function to open the roads options in the lower menu bar for further determination of which types of roads to build.
cradle/environment/skylines/atomic_skills/basic_skills.py:13
Functionopen_shop
The function to open the dealer's shop to start dealing for today. This should only be used at the interface of day start, where there is a piece
cradle/environment/dealers/atomic_skills/basic_skills.py:100
Functionopen_the_user_profile_menu
This function can be used to open the user profile menu to set the status.
cradle/environment/feishu/atomic_skills/interact.py:14
Functionopen_water_sewage_menu
The function to open the water and sewage options in the lower menu bar for further determination of which types of water and sewage to build.
cradle/environment/skylines/atomic_skills/basic_skills.py:33
Functionopen_zoning_menu
The function to open the zoning options in the lower menu bar for further determination of which types of zonings to build.
cradle/environment/skylines/atomic_skills/basic_skills.py:44
FunctionouterHeight
(element)
docs/js/bulma-carousel.js:140
FunctionouterWidth
(element)
docs/js/bulma-carousel.js:151
Functionparse_semi_formatted_json
(json_string)
cradle/utils/json_utils.py:81
Methodpause_game
Pause the game. Args: env_name: Environment name. ide_name: IDE name. Returns:
cradle/environment/ui_control.py:9
Methodpause_game
(self, env_name: str, ide_name: str)
cradle/environment/rdr2/ui_control.py:25
Methodpause_game
(self, env_name: str, ide_name: str)
cradle/environment/software/ui_control.py:18
Functionposition
(element)
docs/js/bulma-carousel.js:162
Functionpress_enter
Press the enter key.
cradle/environment/capcut/composite_skills/shortcut.py:108
Functionpress_key
Pressing the selected key in the current situation. Parameters: - key: A keyboard key to be pressed. For example, press the 'enter' key.
cradle/environment/feishu/atomic_skills/interact.py:84
Functionpress_key
Pressing the selected key in the current situation. Parameters: - key: A keyboard key to be pressed. For example, press the 'enter' key.
cradle/environment/chrome/atomic_skills/interact.py:31
Functionpress_key
Pressing the selected key in the current situation. Parameters: - key: A keyboard key to be pressed. For example, press the 'enter' key.
cradle/environment/software/atomic_skills/base.py:107
Functionpress_key
Pressing the selected key in the current situation. Parameters: - key: A keyboard key to be pressed. For example, press the 'enter' key.
cradle/environment/capcut/atomic_skills/interact.py:69
Functionpress_key
Pressing the selected key in the current situation. Parameters: - key: A keyboard key to be pressed. For example, press the 'enter' key.
cradle/environment/outlook/atomic_skills/interact.py:14
Functionpress_key
Pressing the selected key in the current situation. Parameters: - key: A keyboard key to be pressed. For example, press the 'enter' key.
cradle/environment/xiuxiu/atomic_skills/interact.py:33
Functionpress_keyboard_shortcut
Presses a keyboard shortcut. For example, when pressing the shortcut or hotkey combination 'ctrl + P', 'ctr' and 'P' are pressed combined. P
cradle/environment/outlook/atomic_skills/interact.py:25
Functionpress_keys_combined
Presses the keys in the list combined. For example, when pressing the shortcut or hotkey combination 'ctrl' + P. Parameters: - keys: Lis
cradle/environment/feishu/atomic_skills/interact.py:95
Functionpress_keys_combined
Presses the keys in the list combined. For example, when pressing the shortcut or hotkey combination 'ctrl' + P. Parameters: - keys: Lis
cradle/environment/chrome/atomic_skills/interact.py:42
Functionpress_keys_combined
Presses the keys in the list combined. For example, when pressing the shortcut or hotkey combination 'ctrl' + P. Parameters: - keys: Lis
cradle/environment/software/atomic_skills/base.py:143
Functionpress_keys_combined
Presses the keys in the list combined. For example, when pressing the shortcut or hotkey combination 'ctrl, p'. Parameters: - keys: List
cradle/environment/capcut/atomic_skills/interact.py:80
Functionpress_keys_combined
Presses the keys in the list combined. For example, when pressing the shortcut or hotkey combination 'ctrl' + P. Parameters: - keys: Lis
cradle/environment/xiuxiu/atomic_skills/interact.py:44
Methodprocess_masks_in_batches
(masks, batch_size=10)
cradle/provider/sam_provider.py:125
Functionprocess_string
(input_str)
log_processor.py:87
Functionproduct_details
Views detailed information about the product by pressing "space".
cradle/environment/rdr2/atomic_skills/buy.py:109
Functionpurchase_from_shelf
Buys a product from the shelf by holding down the "r" key for a specified duration. Parameters: - duration: The duration for which the
cradle/environment/rdr2/atomic_skills/buy.py:169
Functionrc
(c)
docs/js/fontawesome.all.min.js:5
Methodrecalculate_som_subarea
Recursive SOM process for large bounding boxes. Args: screenshot_path (str): The filename of the screenshot.
cradle/provider/sam_provider.py:69
Methodrecent_search
Retrieve the recent k keys Args: recent_k: the number of results to return. **kwargs: Other keyword arguments that su
cradle/memory/basic_vector_memory.py:94
Methodregister_available_skills
(self, candidates)
cradle/gameio/game_manager.py:126
Methodregister_available_skills
(self, candidates:List[str])
cradle/environment/skill_registry.py:513
Functionregister_environment
(name)
cradle/environment/environment_registry.py:3
Functionregister_skill
(name)
cradle/environment/skill_registry.py:31
Functionregister_skill
(name)
cradle/environment/feishu/skill_registry.py:15
Functionregister_skill
(name)
cradle/environment/rdr2/skill_registry.py:15
Functionregister_skill
(name)
cradle/environment/chrome/skill_registry.py:15
Functionregister_skill
(name)
cradle/environment/skylines/skill_registry.py:15
Functionregister_skill
(name)
cradle/environment/software/skill_registry.py:20
Functionregister_skill
(name)
cradle/environment/dealers/skill_registry.py:16
Functionregister_skill
(name)
cradle/environment/capcut/skill_registry.py:15
Functionregister_skill
(name)
cradle/environment/stardew/skill_registry.py:15
Functionregister_skill
(name)
cradle/environment/outlook/skill_registry.py:15
Functionregister_skill
(name)
cradle/environment/xiuxiu/skill_registry.py:15
Functionreject_deal
The function to click on the cross mark to reject the deal on the confirmation dialog.
cradle/environment/dealers/atomic_skills/basic_skills.py:65
Functionrelease_key
Release the selected key in the current situation. Parameters: - key: A keyboard key to be released. For example, release the 'shift' ke
cradle/environment/software/atomic_skills/base.py:131
FunctionremoveClasses
(element, classes)
docs/js/bulma-carousel.js:102
Methodretrieve_skills
(self, query_task: str, skill_num: int, screen_type: str)
cradle/environment/skill_registry.py:482
Functionreturn_to_previous_page
Return to the previous page.
cradle/environment/chrome/atomic_skills/interact.py:66
Functionreturn_to_previous_page
Return to the previous page.
cradle/environment/xiuxiu/atomic_skills/interact.py:67
Methodrun
(self, img_file, yellow_range=np.array([[140, 230, 230], [170, 255, 255]]),
cradle/provider/circle_detector.py:43
Methodrun
(self, *args, data: Any, **kwargs)
cradle/provider/video/video_ocr_extractor.py:142
Methodsave
Save the memory to the local file.
cradle/memory/local_memory.py:152
Methodsave
Save the memory to the local file.
cradle/memory/short_term_memory.py:131
Methodsave
Save the memory to the local file.
cradle/memory/basic_vector_memory.py:136
Methodsave
Save FAISS index and index_to_key to disk.
cradle/memory/vector_store.py:54
Functionsave_project
Save the current project.
cradle/environment/xiuxiu/atomic_skills/interact.py:87
Functionscroll_down_keyboard_for_info
Scrolls down in the catalog using the "down" arrow key.
cradle/environment/rdr2/atomic_skills/buy.py:125
Functionscroll_down_mouse_for_info
Scrolls down in the catalog using the mouse wheel down.
cradle/environment/rdr2/atomic_skills/buy.py:141
Functionscroll_up_keyboard_for_info
Scrolls up in the catalog using the "up" arrow key.
cradle/environment/rdr2/atomic_skills/buy.py:117
Functionscroll_up_mouse_for_info
Scrolls up in the catalog using the mouse wheel up.
cradle/environment/rdr2/atomic_skills/buy.py:133
Functionselect_downside_product
This function simulates the action of selecting the product on the next downside of the current selected product. It uses the pydirectinput l
cradle/environment/rdr2/atomic_skills/trade_utils.py:71
Functionselect_leftside_product
This function simulates the action of selecting the product on the next leftside of the current selected product. It uses the pydirectinput l
cradle/environment/rdr2/atomic_skills/trade_utils.py:80
Functionselect_next_index_object
When the index is opened, moves to the next index selection by pressing the "down" arrow key. Items of interest may be out of view, so this s
cradle/environment/rdr2/atomic_skills/map.py:90
Functionselect_next_product
This function simulates the action of selecting the next product of the current selected product. It uses the pydirectinput library to press
cradle/environment/rdr2/atomic_skills/trade_utils.py:98
← previousnext →1,001–1,100 of 1,182, ranked by callers