MCPcopy
hub / github.com/abi/screenshot-to-code / summarize_text

Function summarize_text

backend/agent/tools/summaries.py:9–12  ·  view source on GitHub ↗
(value: str, limit: int = 240)

Source from the content-addressed store, hash-verified

7
8
9def summarize_text(value: str, limit: int = 240) -> str:
10 if len(value) <= limit:
11 return value
12 return value[:limit] + "..."
13
14
15def summarize_tool_input(tool_call: ToolCall, file_state: AgentFileState) -> Dict[str, Any]:

Callers 8

run_extract_assetsFunction · 0.90
_create_fileMethod · 0.90
_edit_fileMethod · 0.90
_remove_backgroundMethod · 0.90
_edit_imageMethod · 0.90
_retrieve_optionMethod · 0.90
summarize_tool_inputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected