Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MiniMax-AI/Mini-Agent
/ functions
Functions
783 in github.com/MiniMax-AI/Mini-Agent
⨍
Functions
783
◇
Types & classes
88
↓ 2 callers
Method
calculate_delay
Calculate delay time (exponential backoff) Args: attempt: Current attempt number (starting from 0) Returns:
mini_agent/retry.py:51
↓ 2 callers
Method
call_tool
Call a tool on the MCP server with provided arguments.
mini_agent/skills/mcp-builder/scripts/connections.py:67
↓ 2 callers
Method
cancel
(self, params: CancelNotification)
mini_agent/acp/__init__.py:122
↓ 2 callers
Function
check_slack_size
Check if GIF meets Slack size limits. Args: gif_path: Path to GIF file is_emoji: True for emoji GIF (64KB limit), False for
mini_agent/skills/slack-gif-creator/core/validators.py:11
↓ 2 callers
Method
connect
Connect to the MCP server with timeout protection.
mini_agent/tools/mcp_loader.py:171
↓ 2 callers
Function
create_explode_animation
Create explosion animation. Args: object_type: 'emoji', 'circle', 'text' object_data: Object configuration num_frame
mini_agent/skills/slack-gif-creator/templates/explode.py:23
↓ 2 callers
Function
create_fade_animation
Create fade animation. Args: object_type: 'emoji', 'text', 'image' object_data: Object configuration num_frames: Num
mini_agent/skills/slack-gif-creator/templates/fade.py:20
↓ 2 callers
Function
create_slide_animation
Create slide animation. Args: object_type: 'emoji', 'text' object_data: Object configuration num_frames: Number of f
mini_agent/skills/slack-gif-creator/templates/slide.py:19
↓ 2 callers
Function
create_spin_animation
Create spinning/rotating animation. Args: object_type: 'emoji', 'image', 'text' object_data: Object configuration nu
mini_agent/skills/slack-gif-creator/templates/spin.py:20
↓ 2 callers
Function
detect_frame_overflow
Detect text overflow in shapes (text exceeding shape bounds). Returns dict of slide_key -> shape_key -> overflow_inches. Only includes shapes
mini_agent/skills/document-skills/pptx/scripts/replace.py:143
↓ 2 callers
Function
draw_emoji
Draw emoji text on a frame (requires system emoji support). Args: frame: PIL Image to draw on emoji: Emoji character(s)
mini_agent/skills/slack-gif-creator/core/frame_composer.py:134
↓ 2 callers
Method
execute
Execute the tool with arbitrary arguments.
mini_agent/tools/base.py:34
↓ 2 callers
Method
execute
Get detailed information about specified skill
mini_agent/tools/skill_tool.py:40
↓ 2 callers
Method
execute
Execute read file.
mini_agent/tools/file_tools.py:108
↓ 2 callers
Method
execute
Execute write file.
mini_agent/tools/file_tools.py:195
↓ 2 callers
Method
execute
Execute edit file.
mini_agent/tools/file_tools.py:256
↓ 2 callers
Method
generate
Generate response from OpenAI LLM. Args: messages: List of conversation messages tools: Optional list of available to
mini_agent/llm/openai_client.py:261
↓ 2 callers
Function
getText
()
mini_agent/skills/document-skills/pptx/scripts/html2pptx.js:101
↓ 2 callers
Method
get_available_ids
Get all available bash IDs.
mini_agent/tools/bash_tool.py:125
↓ 2 callers
Method
get_default_config_path
Get the default config file path with priority search Returns: Path to config.yaml (prioritizes: dev config/ > user config/ > pac
mini_agent/config.py:209
↓ 2 callers
Function
get_field_info
(reader: PdfReader)
mini_agent/skills/document-skills/pdf/scripts/extract_form_field_info.py:62
↓ 2 callers
Function
get_log_directory
Get the log directory path.
mini_agent/cli.py:78
↓ 2 callers
Method
get_new_output
Get new output since last check, optionally filtered by regex.
mini_agent/tools/bash_tool.py:73
↓ 2 callers
Method
get_next_rid
Get the next available rId for relationships files.
mini_agent/skills/document-skills/docx/scripts/utilities.py:290
↓ 2 callers
Method
inches_to_pixels
Convert inches to pixels at given DPI.
mini_agent/skills/document-skills/pptx/scripts/inventory.py:275
↓ 2 callers
Method
initialize
(self, params: InitializeRequest)
mini_agent/acp/__init__.py:88
↓ 2 callers
Function
initializeSeed
(seed)
mini_agent/skills/algorithmic-art/templates/generator_template.js:43
↓ 2 callers
Function
initialize_base_tools
Initialize base tools (independent of workspace) These tools are loaded from package configuration and don't depend on workspace. Note: File
mini_agent/cli.py:338
↓ 2 callers
Method
is_alive
Check if particle is still alive.
mini_agent/skills/slack-gif-creator/core/visual_effects.py:59
↓ 2 callers
Method
list_skills
List all loaded skill names Returns: List of skill names
mini_agent/tools/skill_loader.py:228
↓ 2 callers
Method
list_tools
Retrieve available tools from the MCP server.
mini_agent/skills/mcp-builder/scripts/connections.py:55
↓ 2 callers
Function
load_config
Load config from config.yaml.
examples/06_tool_schema_demo.py:17
↓ 2 callers
Method
newSession
(self, params: NewSessionRequest)
mini_agent/acp/__init__.py:95
↓ 2 callers
Function
pack_document
Pack a directory into an Office file (.docx/.pptx/.xlsx). Args: input_dir: Path to unpacked Office document directory output_file
mini_agent/skills/document-skills/docx/ooxml/scripts/pack.py:45
↓ 2 callers
Function
parseInlineFormatting
(element, baseOptions = {}, runs = [], baseTextTransform = (x) => x)
mini_agent/skills/document-skills/pptx/scripts/html2pptx.js:419
↓ 2 callers
Method
prompt
(self, params: PromptRequest)
mini_agent/acp/__init__.py:106
↓ 2 callers
Function
read_log_file
Read and display a specific log file. Args: filename: The log filename to read
mini_agent/cli.py:145
↓ 2 callers
Function
shouldSkipBold
(fontFamily)
mini_agent/skills/document-skills/pptx/scripts/html2pptx.js:254
↓ 2 callers
Function
show_log_directory
Show log directory contents and optionally open file manager. Args: open_file_manager: Whether to open the system file manager
mini_agent/cli.py:83
↓ 2 callers
Method
to_dict
Convert to dictionary for JSON serialization.
mini_agent/skills/document-skills/pptx/scripts/inventory.py:692
↓ 2 callers
Method
to_prompt
Convert skill to prompt format
mini_agent/tools/skill_loader.py:27
↓ 2 callers
Method
update
Update particle position and lifetime.
mini_agent/skills/slack-gif-creator/core/visual_effects.py:45
↓ 2 callers
Method
validate_against_xsd
Validate XML files against XSD schemas, showing only new errors compared to original.
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/base.py:688
↓ 2 callers
Method
validate_against_xsd
Validate XML files against XSD schemas, showing only new errors compared to original.
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/base.py:688
↓ 2 callers
Method
validate_all_relationship_ids
Validate that all r:id attributes in XML files reference existing IDs in their corresponding .rels files, and optionally validate rel
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/base.py:388
↓ 2 callers
Method
validate_all_relationship_ids
Validate that all r:id attributes in XML files reference existing IDs in their corresponding .rels files, and optionally validate rel
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/base.py:388
↓ 2 callers
Method
validate_content_types
Validate that all content files are properly declared in [Content_Types].xml.
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/base.py:522
↓ 2 callers
Method
validate_content_types
Validate that all content files are properly declared in [Content_Types].xml.
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/base.py:522
↓ 2 callers
Method
validate_file_references
Validate that all .rels files properly reference files and that all files are referenced.
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/base.py:277
↓ 2 callers
Method
validate_file_references
Validate that all .rels files properly reference files and that all files are referenced.
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/base.py:277
↓ 2 callers
Method
validate_namespaces
Validate that namespace prefixes in Ignorable attributes are declared.
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/base.py:156
↓ 2 callers
Method
validate_namespaces
Validate that namespace prefixes in Ignorable attributes are declared.
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/base.py:156
↓ 2 callers
Function
validate_skill
Basic validation of a skill
mini_agent/skills/skill-creator/scripts/quick_validate.py:11
↓ 2 callers
Method
validate_unique_ids
Validate that specific IDs are unique according to OOXML requirements.
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/base.py:186
↓ 2 callers
Method
validate_unique_ids
Validate that specific IDs are unique according to OOXML requirements.
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/base.py:186
↓ 2 callers
Method
validate_xml
Validate that all XML files are well-formed.
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/base.py:127
↓ 2 callers
Method
validate_xml
Validate that all XML files are well-formed.
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/base.py:127
↓ 1 callers
Method
__aexit__
Clean up MCP server connection resources.
mini_agent/skills/mcp-builder/scripts/connections.py:48
↓ 1 callers
Method
__init__
Args: enabled: Whether to enable retry mechanism max_retries: Maximum number of retries initial_delay: In
mini_agent/retry.py:26
↓ 1 callers
Method
__init__
Initialize with path to unpacked Word document directory. Automatically sets up comment infrastructure (people.xml, RSIDs).
mini_agent/skills/document-skills/docx/scripts/document.py:615
↓ 1 callers
Method
_add_author_to_people
Add author to people.xml (called during initialization).
mini_agent/skills/document-skills/docx/scripts/document.py:1181
↓ 1 callers
Method
_add_content_type_for_people
Add people.xml content type to [Content_Types].xml if not already present.
mini_agent/skills/document-skills/docx/scripts/document.py:960
↓ 1 callers
Method
_add_relationship_for_people
Add people.xml relationship to document.xml.rels if not already present.
mini_agent/skills/document-skills/docx/scripts/document.py:972
↓ 1 callers
Method
_calculate_slide_overflow
Calculate if shape overflows the slide boundaries.
mini_agent/skills/document-skills/pptx/scripts/inventory.py:639
↓ 1 callers
Method
_cancel_monitor
Cancel and remove a monitoring task (internal use only).
mini_agent/tools/bash_tool.py:182
↓ 1 callers
Method
_clean_ignorable_namespaces
Remove attributes and elements not in allowed namespaces.
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/base.py:765
↓ 1 callers
Method
_clean_ignorable_namespaces
Remove attributes and elements not in allowed namespaces.
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/base.py:765
↓ 1 callers
Method
_comment_ref_run_xml
Generate XML for comment reference run. Note: w:rsidR is automatically added by DocxXMLEditor.
mini_agent/skills/document-skills/docx/scripts/document.py:1148
↓ 1 callers
Method
_connect_sse
Connect via SSE transport with timeout parameters.
mini_agent/tools/mcp_loader.py:239
↓ 1 callers
Method
_connect_stdio
Connect via STDIO transport.
mini_agent/tools/mcp_loader.py:234
↓ 1 callers
Method
_connect_streamable_http
Connect via Streamable HTTP transport with timeout parameters.
mini_agent/tools/mcp_loader.py:253
↓ 1 callers
Method
_convert_messages
Convert internal messages to Anthropic format. Args: messages: List of internal Message objects Returns: Tup
mini_agent/llm/anthropic_client.py:114
↓ 1 callers
Method
_convert_messages
Convert internal messages to OpenAI format. Args: messages: List of internal Message objects Returns: Tuple
mini_agent/llm/openai_client.py:114
↓ 1 callers
Method
_convert_tools
Convert tools to Anthropic format. Anthropic tool format: { "name": "tool_name", "description": "Tool descrip
mini_agent/llm/anthropic_client.py:83
↓ 1 callers
Method
_convert_tools
Convert tools to OpenAI format. Args: tools: List of Tool objects or dicts Returns: List of tools in OpenAI
mini_agent/llm/openai_client.py:80
↓ 1 callers
Method
_create_context
Create the connection context based on connection type.
mini_agent/skills/mcp-builder/scripts/connections.py:21
↓ 1 callers
Function
_create_line_tracking_parser
Create a SAX parser that tracks line and column numbers for each element. Monkey patches the SAX content handler to store the current line a
mini_agent/skills/document-skills/docx/scripts/utilities.py:346
↓ 1 callers
Method
_create_summary
Create summary for one execution round Args: messages: List of messages to summarize round_num: Round number
mini_agent/agent.py:262
↓ 1 callers
Method
_detect_bullet_issues
Detect bullet point formatting issues in paragraphs.
mini_agent/skills/document-skills/pptx/scripts/inventory.py:660
↓ 1 callers
Method
_ensure_comment_content_types
Ensure [Content_Types].xml has comment content types.
mini_agent/skills/document-skills/docx/scripts/document.py:1243
↓ 1 callers
Method
_ensure_comment_relationships
Ensure word/_rels/document.xml.rels has comment relationships.
mini_agent/skills/document-skills/docx/scripts/document.py:1203
↓ 1 callers
Method
_ensure_w16cex_namespace
Ensure w16cex namespace is declared on the root element.
mini_agent/skills/document-skills/docx/scripts/document.py:98
↓ 1 callers
Method
_ensure_w16du_namespace
Ensure w16du namespace is declared on the root element.
mini_agent/skills/document-skills/docx/scripts/document.py:89
↓ 1 callers
Method
_estimate_frame_overflow
Estimate if text overflows the shape bounds using PIL text measurement.
mini_agent/skills/document-skills/pptx/scripts/inventory.py:562
↓ 1 callers
Method
_estimate_tokens_fallback
Fallback token estimation method (when tiktoken is unavailable)
mini_agent/agent.py:160
↓ 1 callers
Method
_generate_detailed_diff
Generate detailed word-level differences using git word diff.
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/redlining.py:114
↓ 1 callers
Method
_generate_detailed_diff
Generate detailed word-level differences using git word diff.
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/redlining.py:114
↓ 1 callers
Function
_generate_rsid
Generate random 8-character hex RSID.
mini_agent/skills/document-skills/docx/scripts/document.py:607
↓ 1 callers
Method
_get_default_font_size
Get default font size from theme text styles or use conservative default.
mini_agent/skills/document-skills/pptx/scripts/inventory.py:480
↓ 1 callers
Method
_get_element_text
Recursively extract all text content from an element. Skips text nodes that contain only whitespace (spaces, tabs, newlines),
mini_agent/skills/document-skills/docx/scripts/utilities.py:183
↓ 1 callers
Method
_get_expected_relationship_type
Get the expected relationship type for an element. First checks the explicit mapping, then tries pattern detection.
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/base.py:486
↓ 1 callers
Method
_get_expected_relationship_type
Get the expected relationship type for an element. First checks the explicit mapping, then tries pattern detection.
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/base.py:486
↓ 1 callers
Method
_get_git_word_diff
Generate word diff using git with character-level precision.
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/redlining.py:139
↓ 1 callers
Method
_get_git_word_diff
Generate word diff using git with character-level precision.
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/redlining.py:139
↓ 1 callers
Method
_get_next_change_id
Get the next available change ID by checking all tracked change elements.
mini_agent/skills/document-skills/docx/scripts/document.py:75
↓ 1 callers
Method
_get_next_comment_id
Get the next available comment ID.
mini_agent/skills/document-skills/docx/scripts/document.py:888
↓ 1 callers
Method
_get_original_file_errors
Get XSD validation errors from a single file in the original document. Args: xml_file: Path to the XML file in unpacked_dir to ch
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/base.py:869
↓ 1 callers
Method
_get_original_file_errors
Get XSD validation errors from a single file in the original document. Args: xml_file: Path to the XML file in unpacked_dir to ch
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/base.py:869
↓ 1 callers
Method
_get_schema_path
Determine the appropriate schema path for an XML file.
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/base.py:741
↓ 1 callers
Method
_get_schema_path
Determine the appropriate schema path for an XML file.
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/base.py:741
← previous
next →
101–200 of 783, ranked by callers