MCPcopy Create free account

hub / github.com/MiroMindAI/MiroThinker / functions

Functions534 in github.com/MiroMindAI/MiroThinker

Methodconvert_a
Same as usual converter, but removes Javascript links and escapes URIs.
apps/miroflow-agent/src/io/input_handler.py:677
Methodconvert_hn
Same as usual, but be sure to start with a new line
apps/miroflow-agent/src/io/input_handler.py:669
Methodconvert_img
Same as usual converter, but removes data URIs
apps/miroflow-agent/src/io/input_handler.py:719
Functionconvert_to_markdown
Convert various types of resources (doc, ppt, pdf, excel, csv, zip file etc.) described by an file: or data: URI to markdown. Args: u
libs/miroflow-tools/src/miroflow_tools/mcp_servers/reading_mcp_server.py:19
Methodconvert_tool_definition_to_tool_call
Convert MCP tool definitions to OpenAI function call format. Transforms the internal tool definition format used by MCP servers into
apps/miroflow-agent/src/llm/base_client.py:273
Functioncreate_sandbox
Create a linux sandbox. Args: timeout: Time in seconds before the sandbox is automatically shutdown. The default is 600 seconds. Ret
libs/miroflow-tools/src/miroflow_tools/mcp_servers/python_mcp_server.py:90
Functiondecorator
(func: Callable[..., Awaitable[T]])
apps/miroflow-agent/src/llm/util.py:29
Functiondecorator
( func: Callable[..., Awaitable[R]], )
libs/miroflow-tools/src/miroflow_tools/manager.py:27
Functiondelete_todo
Remove one or more tasks from your plan. Use this to adjust your plan when tasks become irrelevant, duplicated, or no longer needed. Thi
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/task_planner.py:238
Functiondownload_file_from_internet_to_sandbox
Download a file from the internet to the `/home/user` dir of the sandbox (avoid large or slow URLs). Args: sandbox_id: The id of the sand
libs/miroflow-tools/src/miroflow_tools/mcp_servers/python_mcp_server.py:294
Functiondownload_file_from_sandbox_to_local
Download a file from the sandbox to local system. Files in sandbox cannot be processed by tools from other servers - only local files and internet URL
libs/miroflow-tools/src/miroflow_tools/mcp_servers/python_mcp_server.py:390
Methodensure_summary_context
Check if current message_history + summary_prompt will exceed context If it will exceed, remove the last assistant-user pair and retu
apps/miroflow-agent/src/llm/providers/anthropic_client.py:302
Functionexception_handler
(loop, context)
apps/miroflow-agent/benchmarks/common_benchmark.py:72
Methodexception_handler
(loop, context)
apps/miroflow-agent/benchmarks/common_benchmark.py:559
Methodexecute_single_tool_call
Execute a single tool call. Args: tool_manager: The tool manager to use server_name: Name of the MCP server
apps/miroflow-agent/src/core/tool_executor.py:260
Methodexecute_tool_call
( self, *, server_name: str, tool_name: str, arguments: dict[str, Any] )
libs/miroflow-tools/src/miroflow_tools/manager.py:43
FunctionexpandAllSteps
()
apps/visualize-trace/static/js/script.js:848
Methodextract_timestamp
(file_path)
apps/miroflow-agent/benchmarks/common_benchmark.py:212
Methodextract_tool_calls
( self, model_output: str, request: ChatCompletionRequest, )
apps/lobehub-compatibility/MiroThinkerToolParser.py:158
Methodextract_tool_calls_info
Extract tool call information from LLM response
apps/miroflow-agent/src/llm/providers/anthropic_client.py:244
Methodextract_tool_calls_streaming
( self, previous_text: str, current_text: str, delta_text: str, previo
apps/lobehub-compatibility/MiroThinkerToolParser.py:252
Methodformat_token_usage_summary
Format token usage statistics, return summary_lines for format_final_summary and log string
apps/miroflow-agent/src/llm/providers/anthropic_client.py:364
Methodformat_tool_result_for_llm
Format tool result for feeding back to LLM. Args: tool_result: The tool execution result Returns: F
apps/miroflow-agent/src/core/tool_executor.py:346
Methodfrom_dict
Create a TaskLog instance from a dictionary. Args: d: Dictionary containing TaskLog field values. Returns:
apps/miroflow-agent/src/logging/task_logger.py:336
Methodgenerate_agent_system_prompt
(self, date: Any, mcp_servers: List[Dict])
apps/miroflow-agent/src/llm/providers/anthropic_client.py:274
Functiongenerate_no_mcp_system_prompt
Generate a minimal system prompt without MCP tool definitions. Used when no tools are available or when running in tool-less mode. Args
apps/miroflow-agent/src/utils/prompt_utils.py:167
Methodget_all_tool_definitions
(self)
libs/miroflow-tools/src/miroflow_tools/manager.py:42
Functionget_basic_info
Get basic information
apps/visualize-trace/app.py:117
Functionget_custom_identity_prompt
Return the custom identity prompt string.
apps/gradio-demo/prompt_patch.py:298
Functionget_execution_flow
Get execution flow
apps/visualize-trace/app.py:141
Functionget_execution_summary
Get execution summary
apps/visualize-trace/app.py:153
Functionget_performance_summary
Get performance summary
apps/visualize-trace/app.py:129
Functionget_raw_messages
Get raw message data for debugging
apps/visualize-trace/app.py:189
Functionget_spans_summary
Get spans summary
apps/visualize-trace/app.py:165
Functionget_step_logs_summary
Get step logs summary
apps/visualize-trace/app.py:177
Functiongoogle_search
Tool to perform web searches via Serper API and retrieve rich results. It is able to retrieve organic search results, people also ask, r
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/search_and_scrape_webpage.py:78
Functiongoogle_search
Perform google searches via Serper API and retrieve rich results. It is able to retrieve organic search results, people also ask, related searches
libs/miroflow-tools/src/miroflow_tools/mcp_servers/searching_google_mcp_server.py:85
Functiongoogle_search
Tool to perform web searches via Serper API and retrieve rich results. It is able to retrieve organic search results, people also ask, r
libs/miroflow-tools/src/miroflow_tools/mcp_servers/serper_mcp_server.py:59
Methodgrade_with_semaphore
(task_info)
apps/miroflow-agent/benchmarks/subset_extraction/gaia-text-103-grader.py:180
Functiongradio_run
(query: str, ui_state: Optional[dict])
apps/gradio-demo/main.py:880
FunctionhandleKeyboardShortcuts
(event)
apps/visualize-trace/static/js/script.js:424
FunctionhandleScroll
()
apps/visualize-trace/static/js/script.js:1140
Functionindex
Main page
apps/visualize-trace/app.py:16
Methodis_duplicate_query
Check if a query has been executed before. Args: cache_name: Name of the cache (e.g., "main_google_search")
apps/miroflow-agent/src/core/tool_executor.py:136
Methodjudge_accuracy
Calculate judge accuracy percentage
apps/miroflow-agent/benchmarks/check_progress/common.py:190
Methodlevel1_accuracy
Calculate Level 1 accuracy percentage
apps/miroflow-agent/benchmarks/check_progress/common.py:224
Methodlevel1_accuracy
Calculate overall Level 1 accuracy percentage
apps/miroflow-agent/benchmarks/check_progress/common.py:316
Methodlevel2_accuracy
Calculate Level 2 accuracy percentage
apps/miroflow-agent/benchmarks/check_progress/common.py:233
Methodlevel2_accuracy
Calculate overall Level 2 accuracy percentage
apps/miroflow-agent/benchmarks/check_progress/common.py:325
Methodlevel3_accuracy
Calculate Level 3 accuracy percentage
apps/miroflow-agent/benchmarks/check_progress/common.py:242
Methodlevel3_accuracy
Calculate overall Level 3 accuracy percentage
apps/miroflow-agent/benchmarks/check_progress/common.py:334
Functionlist_files
List available JSON files
apps/visualize-trace/app.py:22
Functionlist_todos
Display the complete task plan with all items and their status. Use this to review your overall progress, see what's done and what remains,
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/task_planner.py:160
Functionload_trace
Load trace file
apps/visualize-trace/app.py:86
Methodmessage
Send message event with streaming content. Args: message_id: Unique identifier for the message delta_content
apps/miroflow-agent/src/core/stream_handler.py:175
FunctiononFileSelect
()
apps/visualize-trace/static/js/script.js:371
Functionpatched_format_final_summary_and_log
Patched version that doesn't return FORMAT_ERROR_MESSAGE. Instead of checking for \boxed{} content, we use the entire answer
apps/gradio-demo/prompt_patch.py:250
Functionpatched_generate_agent_summarize_prompt
Patched version that uses user-friendly prompt for main agent. For main agent in demo mode, uses a Markdown-friendly prompt instead
apps/gradio-demo/prompt_patch.py:188
Functionpatched_generate_mcp_system_prompt
Patched version that prepends custom identity prompt.
apps/gradio-demo/prompt_patch.py:150
Functionpatched_process_input
Patched version that removes boxed format requirement.
apps/gradio-demo/prompt_patch.py:169
Methodprocess_llm_response
Process LLM response
apps/miroflow-agent/src/llm/providers/anthropic_client.py:187
Methodput
Put data safely from any thread
apps/gradio-demo/main.py:186
Functionpython
Use this tool to execute STATELESS Python code in your chain of thought. The code will not be shown to the user. This tool should be used for internal
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/stateless_python_server.py:20
Functionreasoning
You can use this tool use solve hard math problem, puzzle, riddle and IQ test question that requires a lot of chain of thought efforts. DO NOT use
libs/miroflow-tools/src/miroflow_tools/mcp_servers/reasoning_mcp_server_os.py:55
Functionreasoning
You can use this tool to solve hard math problem, puzzle, riddle and IQ test question that requires a lot of chain of thought efforts. DO NOT use
libs/miroflow-tools/src/miroflow_tools/mcp_servers/reasoning_mcp_server.py:20
Methodrecord_query
Record that a query has been executed. Args: cache_name: Name of the cache query_str: The query string to re
apps/miroflow-agent/src/core/tool_executor.py:151
Methodrun_analysis
Run the complete analysis and return summary statistics
apps/miroflow-agent/benchmarks/check_progress/common.py:1077
Functionrun_command
Execute a lightweight shell command in the linux sandbox (no long-running, blocking, or resource-heavy processes). Args: command: The com
libs/miroflow-tools/src/miroflow_tools/mcp_servers/python_mcp_server.py:129
Functionrun_pipeline_in_thread
()
apps/gradio-demo/main.py:279
Functionrun_python_code
Run short, safe python code in a sandbox and return the execution result (avoid long loops or heavy tasks; must finish quickly). Args: co
libs/miroflow-tools/src/miroflow_tools/mcp_servers/python_mcp_server.py:173
Functionscrape_and_extract_info
Scrape content from a URL, including web pages, PDFs, code files, and other supported resources, and extract meaningful information using an LLM.
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/jina_scrape_llm_summary.py:28
Functionscrape_website
This tool is used to scrape a website for its content. Search engines are not supported by this tool. This tool can also be used to get YouTube video
libs/miroflow-tools/src/miroflow_tools/mcp_servers/searching_google_mcp_server.py:649
Functionscrape_website
This tool is used to scrape a website for its content. Search engines are not supported by this tool. This tool can also be used to get YouTube video
libs/miroflow-tools/src/miroflow_tools/mcp_servers/searching_sogou_mcp_server.py:91
FunctionscrollToBrowserStep
(parentIndex, browserStepId)
apps/visualize-trace/static/js/script.js:1081
FunctionscrollToStep
(stepIndex)
apps/visualize-trace/static/js/script.js:1059
Functionsearch_archived_webpage
Search the Wayback Machine (archive.org) for archived versions of a webpage, optionally for a specific date. Args: url: The URL to search
libs/miroflow-tools/src/miroflow_tools/mcp_servers/searching_google_mcp_server.py:433
Functionsearch_wiki_revision
Search for an entity in Wikipedia and return the revision history for a specific month. Args: entity: The entity to search for in Wikiped
libs/miroflow-tools/src/miroflow_tools/mcp_servers/searching_google_mcp_server.py:276
FunctionshowFullMessage
(stepId)
apps/visualize-trace/static/js/script.js:921
Functionsogou_search
Tool to perform web searches via Tencent Cloud SearchPro API (Sogou search engine). Sogou search offers superior results for Chinese-languag
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/search_and_scrape_webpage.py:227
Functionsogou_search
Performs web searches using the Tencent Cloud SearchPro API to retrieve comprehensive information, with Sogou search offering superior results for Chi
libs/miroflow-tools/src/miroflow_tools/mcp_servers/searching_sogou_mcp_server.py:30
Functionstop_current
(ui_state: Optional[dict])
apps/gradio-demo/main.py:923
Functionstrftime_now
Simulate vLLM's strftime_now function.
apps/lobehub-compatibility/unit_test.py:19
Functiontemplate
Load the chat template.
apps/lobehub-compatibility/unit_test.py:25
Methodtest_add_generation_prompt
add_generation_prompt should add <|im_start|>assistant at the end.
apps/lobehub-compatibility/unit_test.py:81
Methodtest_assistant_empty_content
Assistant with empty string content should work.
apps/lobehub-compatibility/unit_test.py:724
Methodtest_assistant_message_format
Assistant message should be wrapped correctly with <think> tags.
apps/lobehub-compatibility/unit_test.py:67
Methodtest_enable_thinking_false
enable_thinking=false should output empty think tags.
apps/lobehub-compatibility/unit_test.py:160
Methodtest_enable_thinking_true
enable_thinking=true should not output empty think tags.
apps/lobehub-compatibility/unit_test.py:169
Methodtest_full_tool_use_flow
Test a complete tool use flow.
apps/lobehub-compatibility/unit_test.py:769
Methodtest_multi_turn_conversation
Multi-turn conversation should maintain correct order.
apps/lobehub-compatibility/unit_test.py:88
Methodtest_multiple_tool_calls
Multiple tool calls should be separated by newlines.
apps/lobehub-compatibility/unit_test.py:504
Methodtest_multiple_tool_responses_merged
Multiple consecutive tool responses should be merged into one user message.
apps/lobehub-compatibility/unit_test.py:633
Methodtest_newlines_preserved
Newlines in content should be preserved.
apps/lobehub-compatibility/unit_test.py:752
Methodtest_only_system_message
Only system message should work.
apps/lobehub-compatibility/unit_test.py:718
Methodtest_reasoning_content_field
reasoning_content field should be wrapped in <think> tags.
apps/lobehub-compatibility/unit_test.py:115
Methodtest_reasoning_with_tool_use
Test reasoning content combined with tool use.
apps/lobehub-compatibility/unit_test.py:824
Methodtest_special_characters_in_content
Special characters should be preserved.
apps/lobehub-compatibility/unit_test.py:744
Methodtest_system_message_format
System message should be wrapped correctly.
apps/lobehub-compatibility/unit_test.py:57
Methodtest_system_message_prepended_with_tools
Custom system message should be prepended when tools are present.
apps/lobehub-compatibility/unit_test.py:394
Methodtest_think_preserved_in_history
Think tags should be preserved in historical messages, not removed.
apps/lobehub-compatibility/unit_test.py:144
← previousnext →401–500 of 534, ranked by callers