Crack Segmentation
Use the task-oriented tools from the packaged crack-seg MCP server. Tool
names below are raw MCP names; let the client resolve their namespace.
Workflow
- For each local image, call
crack_seg_prepare_upload with its plain filename. Send
the raw file bytes with the exact HTTP PUT URL, method, and headers it
returns. After a successful PUT, retain the returned attachment_ref.
- For an image already available at an HTTP(S) URL under
iphy.ac.cn or one
of its subdomains, call crack_seg_ingest_url with the URL and a plain filename.
Retain its returned attachment_ref.
- Call
crack_seg_segment_cracks with one to eight distinct refs in the intended
order. Set stride and confidence_threshold explicitly when the user
requests a parameter trial; otherwise use the tool defaults.
- Poll
crack_seg_get_task_status with the returned task_id. Stop on FAILED and
report the returned error message. Call crack_seg_get_task_results only after
SUCCEEDED.
- Return the per-image
crack_pixels and crack_ratio. Use the direct HTTP
GET URLs returned for each mask and overlay PNG when the user needs files.
A null URL means that artifact is unavailable; report it without inventing
a download address.
Transfer and Retry Rules
- Never place local paths, Base64, or image bytes in MCP tool arguments. MCP
returns transfer instructions; it does not transport the image payload.
- Treat upload URLs and their headers as short-lived capabilities. Use them
only for the specified PUT, and never copy credentials or authentication
headers into tool arguments, prose, logs, or retained files.
- Each input and the complete task are limited to 100 MiB. Supported plain
filenames end in
.bmp, .jpeg, .jpg, .png, .tif, .tiff, or
.webp.
- Reuse an unchanged
attachment_ref for parameter trials. Exact
crack_seg_segment_cracks retries with the same ordered refs and parameters are
idempotent. Do not blindly replay an indeterminate mutation unless its
structured result or tool contract identifies that exact retry as safe.
- Use only structured retryability information from tool errors. A failed
task is not an empty segmentation result.
Boundaries
If the MCP tools are unavailable, ask the user to connect the packaged
crack-seg server. Do not bypass MCP by calling private provider endpoints,
substitute local image processing, or guess task or result data. Raw HTTP is
used only with upload or download instructions returned by the MCP workflow.
Treat model output as segmentation evidence under the recorded stride and
confidence threshold, not as ground truth. Preserve input order, parameters,
warnings, failed items, and missing artifacts when comparing results.
1---2name: crack-segmentation3description: Segment cracks in SiCf/SiC composite microscopy images, compare crack statistics, and retrieve mask and overlay PNG results. Use when a user provides local images or supported institutional image URLs for crack detection or parameter trials.4display_name: "复合材料裂纹分割"5display_name_en: "Composite Crack Segmentation"6description_zh: "对 SiCf/SiC 复合材料图像进行裂纹分割,统计裂纹像素与比例,支持置信度阈值对比,并提供可用的掩膜和叠加图。"7description_en: "Segment cracks in SiCf/SiC composite images, report crack pixel counts and ratios, compare confidence thresholds, and retrieve available masks and overlays."8version: "0.1.2"9author: "Tiannian Zhu"10metadata:11 source: https://skillmd.com/skills/infometa/crack-segmentation12---1314# Crack Segmentation1516Use the task-oriented tools from the packaged `crack-seg` MCP server. Tool17names below are raw MCP names; let the client resolve their namespace.1819## Workflow20211. For each local image, call `crack_seg_prepare_upload` with its plain filename. Send22 the raw file bytes with the exact HTTP `PUT` URL, method, and headers it23 returns. After a successful PUT, retain the returned `attachment_ref`.242. For an image already available at an HTTP(S) URL under `iphy.ac.cn` or one25 of its subdomains, call `crack_seg_ingest_url` with the URL and a plain filename.26 Retain its returned `attachment_ref`.273. Call `crack_seg_segment_cracks` with one to eight distinct refs in the intended28 order. Set `stride` and `confidence_threshold` explicitly when the user29 requests a parameter trial; otherwise use the tool defaults.304. Poll `crack_seg_get_task_status` with the returned `task_id`. Stop on `FAILED` and31 report the returned `error` message. Call `crack_seg_get_task_results` only after32 `SUCCEEDED`.335. Return the per-image `crack_pixels` and `crack_ratio`. Use the direct HTTP34 GET URLs returned for each mask and overlay PNG when the user needs files.35 A null URL means that artifact is unavailable; report it without inventing36 a download address.3738## Transfer and Retry Rules3940- Never place local paths, Base64, or image bytes in MCP tool arguments. MCP41 returns transfer instructions; it does not transport the image payload.42- Treat upload URLs and their headers as short-lived capabilities. Use them43 only for the specified PUT, and never copy credentials or authentication44 headers into tool arguments, prose, logs, or retained files.45- Each input and the complete task are limited to 100 MiB. Supported plain46 filenames end in `.bmp`, `.jpeg`, `.jpg`, `.png`, `.tif`, `.tiff`, or47 `.webp`.48- Reuse an unchanged `attachment_ref` for parameter trials. Exact49 `crack_seg_segment_cracks` retries with the same ordered refs and parameters are50 idempotent. Do not blindly replay an indeterminate mutation unless its51 structured result or tool contract identifies that exact retry as safe.52- Use only structured retryability information from tool errors. A failed53 task is not an empty segmentation result.5455## Boundaries5657If the MCP tools are unavailable, ask the user to connect the packaged58`crack-seg` server. Do not bypass MCP by calling private provider endpoints,59substitute local image processing, or guess task or result data. Raw HTTP is60used only with upload or download instructions returned by the MCP workflow.6162Treat model output as segmentation evidence under the recorded stride and63confidence threshold, not as ground truth. Preserve input order, parameters,64warnings, failed items, and missing artifacts when comparing results.