read_svg
Extracts SVG structure statistics, text elements, title, and description from an SVG file without rendering, providing tag counts and text content for analysis.
Instructions
SVG의 크기, 태그별 구조 통계, 텍스트 요소를 추출한다.
SVG는 XML이라 별도 렌더링 없이 구조 파악이 가능합니다. 단, 이 도구는 벡터를 래스터화(이미지로 렌더링)하지 않으므로, 텍스트가 거의 없고 순수 도형으로만 이루어진 다이어그램은 element_counts로 복잡도만 짐작할 수 있습니다.
Args: file_path: svg 파일 경로.
Returns:
ReadSvgResponse: element_counts(태그별 개수), text_content(text 요소 모음),
title/description(/ 값).
Raises: ToolFailure: PATH_NOT_FOUND / NOT_A_FILE / FILE_TOO_LARGE / UNSUPPORTED_EXTENSION.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | 읽을 .svg 파일 경로 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| width | Yes | ||
| height | Yes | ||
| status | Yes | 이 호출의 결과 상태 | |
| view_box | Yes | ||
| file_path | Yes | ||
| description | Yes | ||
| next_actions | No | 이어서 호출하면 좋은 도구 목록 | |
| text_content | Yes | ||
| element_counts | Yes | 태그별 등장 횟수. 구조 복잡도 파악용 |