MCPcopy Create free account

hub / github.com/MiniMax-AI/Mini-Agent / functions

Functions783 in github.com/MiniMax-AI/Mini-Agent

↓ 195 callersMethodget
Get a background shell by ID.
mini_agent/tools/bash_tool.py:120
↓ 56 callersFunctioninterpolate
Interpolate between two values with easing. Args: start: Start value end: End value t: Progress from 0.0 to 1.0
mini_agent/skills/slack-gif-creator/core/easing.py:122
↓ 44 callersMethodrun
Execute agent loop until task is complete or max steps reached. Args: cancel_event: Optional asyncio.Event that can be set to can
mini_agent/agent.py:321
↓ 33 callersMethodadd_frames
Add multiple frames at once.
mini_agent/skills/slack-gif-creator/core/gif_builder.py:51
↓ 33 callersFunctioncalculate_display_width
Calculate the visible width of text in terminal columns. This function correctly handles: - ANSI escape codes (removed from width calculation
mini_agent/utils/terminal_utils.py:18
↓ 33 callersMethodsave
Save frames as optimized GIF for Slack. Args: output_path: Where to save the GIF num_colors: Number of color
mini_agent/skills/slack-gif-creator/core/gif_builder.py:148
↓ 29 callersFunctionpxToInch
(px)
mini_agent/skills/document-skills/pptx/scripts/html2pptx.js:261
↓ 24 callersFunctiondraw_emoji_enhanced
Draw emoji with optional shadow for better visual quality. Args: frame: PIL Image to draw on emoji: Emoji character(s)
mini_agent/skills/slack-gif-creator/core/frame_composer.py:270
↓ 20 callersMethodadd
Add a background shell to management.
mini_agent/tools/bash_tool.py:115
↓ 20 callersFunctioncreate_blank_frame
Create a blank frame with solid color background. Args: width: Frame width height: Frame height color: RGB color tup
mini_agent/skills/slack-gif-creator/core/frame_composer.py:14
↓ 19 callersMethodadd_user_message
Add a user message to history.
mini_agent/agent.py:86
↓ 19 callersMethodclear
Clear all frames (useful for creating multiple GIFs).
mini_agent/skills/slack-gif-creator/core/gif_builder.py:244
↓ 18 callersFunctionpxToPoints
(pxStr)
mini_agent/skills/document-skills/pptx/scripts/html2pptx.js:262
↓ 16 callersMethodexecute
Execute shell command with optional background execution. Args: command: The shell command to execute timeout: Timeou
mini_agent/tools/bash_tool.py:309
↓ 13 callersMethodappend_to
Append to with automatic attribute injection.
mini_agent/skills/document-skills/docx/scripts/document.py:258
↓ 12 callersFunctionrgbToHex
(rgbStr)
mini_agent/skills/document-skills/pptx/scripts/html2pptx.js:263
↓ 11 callersMethodfrom_yaml
Load configuration from YAML file Args: config_path: Configuration file path Returns: Config instance
mini_agent/config.py:82
↓ 11 callersFunctionget_bounding_box_messages
(fields_json_stream)
mini_agent/skills/document-skills/pdf/scripts/check_bounding_boxes.py:18
↓ 11 callersFunctionload_mcp_tools_async
Load MCP tools from config file. This function: 1. Reads the MCP config file (with fallback to mcp-example.json) 2. Connects to each
mini_agent/tools/mcp_loader.py:330
↓ 10 callersFunction_determine_connection_type
Determine connection type from server config.
mini_agent/tools/mcp_loader.py:288
↓ 10 callersFunctioncleanup_mcp_connections
Clean up all MCP connections.
mini_agent/tools/mcp_loader.py:428
↓ 10 callersMethodcreate_json_stream
Helper to create a JSON stream from data
mini_agent/skills/document-skills/pdf/scripts/check_bounding_boxes_test.py:10
↓ 10 callersMethodemu_to_inches
Convert EMUs (English Metric Units) to inches.
mini_agent/skills/document-skills/pptx/scripts/inventory.py:270
↓ 10 callersMethodgenerate
Generate response from LLM. Args: messages: List of conversation messages tools: Optional list of Tool objects or dic
mini_agent/llm/llm_wrapper.py:113
↓ 10 callersFunctionpad_to_width
Pad text to reach target width with proper alignment. Args: text: Text to pad (may contain ANSI codes) target_width: Target width
mini_agent/utils/terminal_utils.py:120
↓ 10 callersFunctiontruncate_with_ellipsis
Truncate text to fit within max_width, adding ellipsis if needed. Args: text: Text to truncate (ANSI codes are preserved but not counted)
mini_agent/utils/terminal_utils.py:71
↓ 9 callersMethodload
Load configuration from the default search path.
mini_agent/config.py:74
↓ 8 callersMethodget_node
Get a DOM element by tag and identifier. Finds an element by either its line number in the original file or by matching attr
mini_agent/skills/document-skills/docx/scripts/utilities.py:76
↓ 8 callersMethodto_schema
Convert tool to Anthropic tool schema.
mini_agent/tools/base.py:38
↓ 7 callersMethod_inject_attributes_to_nodes
Inject RSID, author, and date attributes into DOM nodes where applicable. Adds attributes to elements that support them: - w:r: gets
mini_agent/skills/document-skills/docx/scripts/document.py:116
↓ 7 callersFunctionapply_opacity
Apply opacity to an RGBA image. Args: image: RGBA image opacity: Opacity value (0.0 to 1.0) Returns: Image with
mini_agent/skills/slack-gif-creator/templates/fade.py:149
↓ 7 callersFunctiondraw_text_with_outline
Draw text with outline for maximum readability. This is THE most important function for professional-looking text in GIFs. The outline e
mini_agent/skills/slack-gif-creator/core/typography.py:58
↓ 7 callersMethodexecute
Record a session note. Args: content: The information to record category: Category/tag for this note Returns
mini_agent/tools/note_tool.py:91
↓ 7 callersMethodexecute
Recall session notes. Args: category: Optional category filter Returns: ToolResult with notes content
mini_agent/tools/note_tool.py:163
↓ 7 callersMethodload_skill
Load single skill from SKILL.md file Args: skill_path: SKILL.md file path Returns: Skill object, or
mini_agent/tools/skill_loader.py:60
↓ 7 callersMethodsave
Save all modified XML files to disk and copy to destination directory. This persists all changes made via add_comment() and reply_to
mini_agent/skills/document-skills/docx/scripts/document.py:859
↓ 7 callersFunctionset_mcp_timeout_config
Set global MCP timeout configuration. Args: connect_timeout: Connection timeout in seconds execute_timeout: Tool execution timeou
mini_agent/tools/mcp_loader.py:34
↓ 7 callersMethodto_openai_schema
Convert tool to OpenAI tool schema.
mini_agent/tools/base.py:46
↓ 6 callersFunction_generate_hex_id
Generate random 8-character hex ID for para/durable IDs. Values are constrained to be less than 0x7FFFFFFF per OOXML spec: - paraId must be <
mini_agent/skills/document-skills/docx/scripts/document.py:596
↓ 6 callersMethoddiscover_skills
Discover and load all skills in the skills directory Returns: List of Skills
mini_agent/tools/skill_loader.py:194
↓ 6 callersFunctiondraw_circle
Draw a circle on a frame. Args: frame: PIL Image to draw on center: (x, y) center position radius: Circle radius
mini_agent/skills/slack-gif-creator/core/frame_composer.py:29
↓ 6 callersMethodexecute
Terminate a background shell process. Args: bash_id: The unique identifier of the background shell to terminate Returns:
mini_agent/tools/bash_tool.py:568
↓ 6 callersFunctionget_mcp_timeout_config
Get current MCP timeout configuration.
mini_agent/tools/mcp_loader.py:55
↓ 6 callersMethodinsert_after
Insert after with automatic attribute injection.
mini_agent/skills/document-skills/docx/scripts/document.py:246
↓ 5 callersMethod_get_connect_timeout
Get effective connect timeout.
mini_agent/tools/mcp_loader.py:159
↓ 5 callersMethod_send
(self, session_id: str, update: Any)
mini_agent/acp/__init__.py:167
↓ 5 callersMethodexecute
Retrieve output from background shell. Args: bash_id: The unique identifier of the background shell filter_str: Optio
mini_agent/tools/bash_tool.py:485
↓ 5 callersFunctionextract_text_inventory
Extract text content from all slides in a PowerPoint presentation. Args: pptx_path: Path to the PowerPoint file prs: Optional Pre
mini_agent/skills/document-skills/pptx/scripts/inventory.py:914
↓ 5 callersFunctionget_font
Get a font with fallback support. Args: size: Font size in pixels bold: Use bold variant if available Returns:
mini_agent/skills/slack-gif-creator/core/typography.py:25
↓ 5 callersFunctionload_config
Load config from config.yaml.
tests/test_llm_clients.py:18
↓ 5 callersFunctionprint_stats
Print session statistics
mini_agent/cli.py:261
↓ 4 callersMethod_parse_fragment
Parse XML fragment and return list of imported nodes. Args: xml_content: String containing XML fragment Returns
mini_agent/skills/document-skills/docx/scripts/utilities.py:312
↓ 4 callersFunctioncreate_flip_animation
Create 3D-style flip animation. Args: object1_data: First object (front side) object2_data: Second object (back side, None =
mini_agent/skills/slack-gif-creator/templates/flip.py:20
↓ 4 callersFunctioncreate_pulse_animation
Create pulsing/scaling animation. Args: object_type: 'emoji', 'circle', 'text' object_data: Object configuration num
mini_agent/skills/slack-gif-creator/templates/pulse.py:20
↓ 4 callersFunctioncreate_test_skill
Create a test skill
tests/test_skill_loader.py:13
↓ 4 callersFunctionextractAlpha
(rgbStr)
mini_agent/skills/document-skills/pptx/scripts/html2pptx.js:272
↓ 4 callersMethodfind_config_file
Find configuration file with priority order Search for config file in the following order of priority: 1) mini_agent/config/{filename
mini_agent/config.py:177
↓ 4 callersMethodgenerate
Generate response from Anthropic LLM. Args: messages: List of conversation messages tools: Optional list of available
mini_agent/llm/anthropic_client.py:257
↓ 4 callersMethodget_package_dir
Get the package installation directory Returns: Path to the mini_agent package directory
mini_agent/config.py:167
↓ 4 callersMethodinsert_before
Insert before with automatic attribute injection.
mini_agent/skills/document-skills/docx/scripts/document.py:252
↓ 4 callersFunctionprint_info_line
Print a single info line with proper padding
mini_agent/cli.py:227
↓ 3 callersMethod__init__
(self)
mini_agent/skills/mcp-builder/scripts/connections.py:16
↓ 3 callersMethod_check_cancelled
Check if agent execution has been cancelled. Returns: True if cancelled, False otherwise.
mini_agent/agent.py:90
↓ 3 callersMethod_cleanup_incomplete_messages
Remove the incomplete assistant message and its partial tool results. This ensures message consistency after cancellation by removing
mini_agent/agent.py:100
↓ 3 callersMethod_write_log
Write log entry Args: log_type: Log type (REQUEST, RESPONSE, TOOL_RESULT) content: Log content
mini_agent/logger.py:159
↓ 3 callersFunctionapplyTextTransform
(text, textTransform)
mini_agent/skills/document-skills/pptx/scripts/html2pptx.js:279
↓ 3 callersFunctioncreate_morph_animation
Create morphing animation between two objects. Args: object1_data: First object configuration object2_data: Second object co
mini_agent/skills/slack-gif-creator/templates/morph.py:20
↓ 3 callersFunctioncreate_move_animation
Create frames showing object moving along a path. Args: object_type: 'circle', 'emoji', or 'custom' object_data: Data for th
mini_agent/skills/slack-gif-creator/templates/move.py:19
↓ 3 callersFunctioncreate_skill_tools
Create skill tool for Progressive Disclosure Only provides get_skill tool - the agent uses metadata in system prompt to know what skills
mini_agent/tools/skill_tool.py:57
↓ 3 callersFunctioncreate_test_skill
Create a test skill
tests/test_skill_tool.py:18
↓ 3 callersFunctioncreate_wiggle_animation
Create wiggle/wobble animation. Args: object_type: 'emoji', 'text' object_data: Object configuration num_frames: Num
mini_agent/skills/slack-gif-creator/templates/wiggle.py:20
↓ 3 callersFunctionease_out_bounce
Bounce ease-out (bouncy end).
mini_agent/skills/slack-gif-creator/core/easing.py:56
↓ 3 callersFunctionextract_xml_content
Extract content from XML tags.
mini_agent/skills/mcp-builder/scripts/evaluation.py:79
↓ 3 callersMethodgenerate
Generate response from LLM. Args: messages: List of conversation messages tools: Optional list of Tool objects or dic
mini_agent/llm/base.py:41
↓ 3 callersFunctionget_palette
Get a color palette by name. Args: name: Palette name (vibrant, pastel, dark, neon, professional, warm, cool, monochrome) Retur
mini_agent/skills/slack-gif-creator/core/color_palettes.py:108
↓ 3 callersMethodget_skill
Get loaded skill Args: name: Skill name Returns: Skill object, or None if not found
mini_agent/tools/skill_loader.py:216
↓ 3 callersMethodget_skills_metadata_prompt
Generate prompt containing ONLY metadata (name + description) for all skills. This implements Progressive Disclosure - Level 1.
mini_agent/tools/skill_loader.py:237
↓ 3 callersMethodterminate
Terminate the background process.
mini_agent/tools/bash_tool.py:96
↓ 2 callersMethod_add_to_comments_extended_xml
Add a single comment to commentsExtended.xml.
mini_agent/skills/document-skills/docx/scripts/document.py:1091
↓ 2 callersMethod_add_to_comments_extensible_xml
Add a single comment to commentsExtensible.xml.
mini_agent/skills/document-skills/docx/scripts/document.py:1118
↓ 2 callersMethod_add_to_comments_ids_xml
Add a single comment to commentsIds.xml.
mini_agent/skills/document-skills/docx/scripts/document.py:1107
↓ 2 callersMethod_add_to_comments_xml
Add a single comment to comments.xml.
mini_agent/skills/document-skills/docx/scripts/document.py:1068
↓ 2 callersMethod_comment_range_end_xml
Generate XML for comment range end with reference run. Note: w:rsidR is automatically added by DocxXMLEditor.
mini_agent/skills/document-skills/docx/scripts/document.py:1137
↓ 2 callersMethod_comment_range_start_xml
Generate XML for comment range start.
mini_agent/skills/document-skills/docx/scripts/document.py:1133
↓ 2 callersMethod_ensure_w14_namespace
Ensure w14 namespace is declared on the root element.
mini_agent/skills/document-skills/docx/scripts/document.py:107
↓ 2 callersMethod_estimate_tokens
Accurately calculate token count for message history using tiktoken Uses cl100k_base encoder (GPT-4/Claude/M2 compatible)
mini_agent/agent.py:123
↓ 2 callersMethod_extract_text_content
Extract text content from Word XML, preserving paragraph structure. Empty paragraphs are skipped to avoid false positives when tracked
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/redlining.py:254
↓ 2 callersMethod_extract_text_content
Extract text content from Word XML, preserving paragraph structure. Empty paragraphs are skipped to avoid false positives when tracked
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/redlining.py:254
↓ 2 callersMethod_get_execute_timeout
Get effective execute timeout.
mini_agent/tools/mcp_loader.py:167
↓ 2 callersMethod_get_sse_read_timeout
Get effective SSE read timeout.
mini_agent/tools/mcp_loader.py:163
↓ 2 callersMethod_has_override
Check if an override with given part name exists.
mini_agent/skills/document-skills/docx/scripts/document.py:1167
↓ 2 callersMethod_has_relationship
Check if a relationship with given target exists.
mini_agent/skills/document-skills/docx/scripts/document.py:1160
↓ 2 callersFunction_quiet_cleanup
Clean up MCP connections, suppressing noisy asyncgen teardown tracebacks.
mini_agent/cli.py:470
↓ 2 callersMethod_remove_claude_tracked_changes
Remove tracked changes authored by Claude from the XML root.
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/redlining.py:217
↓ 2 callersMethod_remove_claude_tracked_changes
Remove tracked changes authored by Claude from the XML root.
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/redlining.py:217
↓ 2 callersMethod_validate_single_file_xsd
Validate a single XML file against XSD schema. Returns (is_valid, errors_set).
mini_agent/skills/document-skills/pptx/ooxml/scripts/validation/base.py:826
↓ 2 callersMethod_validate_single_file_xsd
Validate a single XML file against XSD schema. Returns (is_valid, errors_set).
mini_agent/skills/document-skills/docx/ooxml/scripts/validation/base.py:826
↓ 2 callersMethodadd_output
Add new output line.
mini_agent/tools/bash_tool.py:69
↓ 2 callersFunctionadd_workspace_tools
Add workspace-dependent tools These tools need to know the workspace directory. Args: tools: Existing tools list to add to c
mini_agent/cli.py:434
↓ 2 callersFunctionasync_retry
Async function retry decorator Args: config: Retry configuration object, uses default config if None on_retry: Callback function
mini_agent/retry.py:73
next →1–100 of 783, ranked by callers