atx-mcp
v0.6.7Deterministic, non-generative image transform MCP server: reproducible recipes, immutable originals.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
apply_transform
Apply a transform recipe at full resolution and issue a new revision. Pass either `recipe` ({"operations": [...]}, applied in order, at most one "encode" and it must be last) or `preset` (a built-in named recipe) - exactly one of the two - and either `revision_id` (one image) or `revision_ids` (the same recipe over a batch of up to 64; one failure does not abort the rest). Call list_operations for the operation catalog and the preset names, explain_operation for one operation's full schema. Idempotent: the same (revision_id, resolved recipe) returns the existing derived revision; a preset hash…
| Parameter | Type | Description |
|---|---|---|
preset | string | null | ビルトインプリセット名(`list_operations` の presets セクション参照)。 指定するとそのプリセットのレシピが使われる。`recipe` とは排他。 |
recipe | object | null | 変換レシピ。`{"operations": [...]}`。`preset` とはどちらか一方のみ指定する。 |
revision_id | string | null | 入力 revision ID("rev_...")。`revision_ids` とは排他で、どちらか一方が必須。 |
revision_ids | array | null | 同じレシピを複数 revision に適用する(1..=64 件)。`revision_id` とは排他。 1件が失敗してもバッチは中断せず、その要素に error が入る。 |
compare_revisions
Scale two revisions to a long edge of 640px each and compose them on one canvas (side by side, or stacked) with an 8px gap, returned inline as a JPEG. A is placed left/top, B is placed right/bottom. Useful for before/after or A/B visual checks. layout="diff" instead requires A and B to share the exact same dimensions and returns a single pixel-difference heatmap plus mean_abs_diff/max_abs_diff/changed_pixel_ratio and an `ssim` score (structural similarity, 1.0 = identical). Every layout also reports `perceptual_hash_distance`: the Hamming distance between the two dHash values (0..=64), where 5…
| Parameter | Type | Description |
|---|---|---|
revision_id_a * | string | 比較対象 A の revision ID("rev_...")。合成画像の左(または上)に置かれる。 |
revision_id_b * | string | 比較対象 B の revision ID("rev_...")。合成画像の右(または下)に置かれる。 |
layout | `"side_by_side"`(既定、水平に並べる)| `"stacked"`(垂直に並べる)| `"diff"`(並べる代わりに1枚の差分ヒートマップを作る。A/B の寸法が完全一致している必要ã… |
detect_document
Detect the dominant quadrilateral (a sheet of paper, a screen, a whiteboard, a sign) in a revision with a contour-based search, and return it as a ready-to-paste perspective operation. This is to `perspective` what detect_tilt is to `rotate`: read-only, it never modifies the image, and a null quad means "do not correct". The quad is in post-EXIF-orientation pixel coordinates, ordered tl, tr, br, bl, and `output_size_hint` is exactly the size `perspective` will produce from it. Optional `min_area_ratio` (0.05..=1.0, default 0.2) is the smallest fraction of the frame a candidate may cover. When…
| Parameter | Type | Description |
|---|---|---|
revision_id * | string | 対象 revision ID("rev_...")。 |
min_area_ratio | number | null | 画像面積に対する候補四角形の最小面積比(0.05..=1.0)。省略時は 0.2。 |
detect_text_blocks
Find the text-like blocks (headline, paragraphs, table, caption) of a revision with a binarize + run-length smearing + connected-components pass, and report whether the text will survive a preview downscale. Read-only: it never modifies the image. Blocks come back in reading order (top to bottom, then left to right) in post-EXIF-orientation pixel coordinates, each with its line_count, median_line_height_px and ink_ratio. `legibility.line_height_at_1568_px` is the median line height once the whole image is shrunk to long edge 1568 (below ~16 the text is usually unreadable), and `legibility.reco…
| Parameter | Type | Description |
|---|---|---|
revision_id * | string | 対象 revision ID("rev_...")。 |
max_blocks | integer | null | 返すブロック数の上限(1..=128)。省略時は 32。 |
min_block_area_ratio | number | null | 作業画像面積に対する 1 ブロックの最小面積比(0.0..=1.0)。 これ未満の成分はノイズとして捨てる。省略時は 0.00005。 |
detect_tilt
Detect the tilt (roll) of a revision: Canny + Hough dominant lines for coarse candidates, refined below 0.1 degree with an edge projection-profile search. Horizontal-only and vertical-only estimates are reported separately so a disagreement can be read as perspective/camera position rather than roll, Set include_score_curve=true to also get the whole search range as a score curve (omitted by default to keep the answer small). Read-only: it never modifies the image. A null recommended angle means "do not correct".
| Parameter | Type | Description |
|---|---|---|
revision_id * | string | 対象 revision ID("rev_...")。 |
include_score_curve | boolean | 探索範囲全体のスコア曲線(最大 300 点)を結果に含めるか。既定 false。 ピークの鋭さ・多峰性を自分で読みたいときだけ true にする(既定では省かれã‚… |
max_abs_angle | number | null | 探索する最大傾き角(度、0.5..=45)。省略時は 15。 |
explain_operation
Full reference for one recipe operation: every parameter with its type, range, required/default status and semantics, one or two ready-to-paste JSON examples, and the gotchas worth knowing before using it. A built-in preset name works too and returns its full operation list, so a preset can be read and copied as a raw recipe. An unknown name returns a structured error listing every valid operation and preset. Read-only.
| Parameter | Type | Description |
|---|---|---|
operation * | string | 説明したい op 名(`{"op": "..."}` に書く名前)。 |
export_asset
Copy revisions' bytes out of the workspace. Pass either `revision_id` + `dest_path` (one file) or `revision_ids` + `dest_dir` (a batch of up to 64 into one existing directory; one failure does not abort the rest) - exactly one of the two forms. For a batch, `filename_template` (default "{revision_id}.{ext}") builds each file name from {revision_id} / {index} (1-based, zero-padded) / {ext} (from the MIME type) / {stem} (the file name the lineage was imported from); it must be a plain file name, and if two entries would collide nothing is written. Refuses to overwrite an existing file unless ove…
| Parameter | Type | Description |
|---|---|---|
dest_dir | string | null | 書き出し先ディレクトリ(ワークスペース外、既存のディレクトリ)。 `revision_ids`(複数)専用。 |
dest_path | string | null | 書き出し先パス(ワークスペース外)。`revision_id`(単数)専用。 |
filename_template | string | null | `dest_dir` 内のファイル名の組み立て方。既定 `"{revision_id}.{ext}"`。 `revision_ids`(複数)専用。 |
overwrite | boolean | 既存ファイルを上書きしてよいか。既定 false(既存なら失敗する)。 |
revision_id | string | null | 書き出す revision ID("rev_...")。`revision_ids` とは排他で、どちらか一方が必須。 |
revision_ids | array | null | 複数 revision を1回で書き出す(1..=64 件)。`revision_id` とは排他。 このときは `dest_path` ではなく `dest_dir` を渡す。 1件が失敗してもバッチは中断せず、`fa… |
generate_mask
Generate a deterministic grayscale mask as a new PNG revision, with exactly the dimensions of `reference_revision_id`. `kind` is "linear_gradient" (angle_degrees, start, end), "radial_gradient" (center_x, center_y, radius, feather), "luminosity_range" (min, max, feather) or "color_range" (hue_center, hue_width, feather); the gradients use only the reference's dimensions, the other two compute weights from its pixels. White = the masked operation applies fully, black = not at all. Reference the returned revision_id from any tone/filter operation as "mask": {"revision_id": "rev_...", "invert": f…
| Parameter | Type | Description |
|---|---|---|
kind * | string | `"linear_gradient"` | `"radial_gradient"` | `"luminosity_range"` | `"color_range"`。 |
reference_revision_id * | string | 寸法(と、輝度/色域マスクでは画素)の供給元になる画像 revision ID。 |
angle_degrees | number | null | linear_gradient: グラデーション軸の角度(度)。0 = 上が白で下へ向かって黒、 90 = 左が白で右へ向かって黒(正の角度で時計回り)。既定 0。 |
center_x | number | null | radial_gradient: 中心の X(画像幅に対する相対値 0..1)。既定 0.5。 |
center_y | number | null | radial_gradient: 中心の Y(画像高に対する相対値 0..1)。既定 0.5。 |
end | number | null | linear_gradient: 軸上で重みが 0.0 に達する位置(0..1、`start` 以上)。既定 1.0。 |
feather | number | null | 減衰帯の幅。radial_gradient では対角線の半分に対する比(0..1、既定 0.25)、 luminosity_range では輝度単位(0..255、既定 16)、 color_range では色相の度数(0..180、æ… |
hue_center | number | null | color_range: 中心色相(度、0..360)。必須。 |
hue_width | number | null | color_range: 中心からの**片側**幅(度、1..180)。既定 30。 |
max | integer | null | luminosity_range: 完全に選択される輝度域の上限(0..255、`min` 以上)。既定 255。 |
min | integer | null | luminosity_range: 完全に選択される輝度域の下限(0..255)。既定 0。 |
radius | number | null | radial_gradient: 重みが 1.0 の内円の半径(対角線の半分に対する比 0..1)。既定 0.5。 |
start | number | null | linear_gradient: 軸上で重みが 1.0 のままでいる終端位置(0..1)。既定 0.0。 |
import_asset
Import a local image file into the workspace and issue an immutable revision. Pass either `path` (one file) or `paths` (a batch of up to 64; one bad file does not abort the batch, it lands in `failed`) - exactly one of the two. Idempotent: importing the same bytes again returns the existing revision. If the imported bytes are already the output of a recipe held in this workspace, the result carries a warning plus `already_derived_from` so the same recipe is not applied twice.
| Parameter | Type | Description |
|---|---|---|
path | string | null | 取り込むローカルファイルの絶対パス(または cwd からの相対パス)。 `paths` とは排他で、どちらか一方が必須。 |
paths | array | null | 複数ファイルを1回で取り込む(1..=64 件)。`path` とは排他。 1件が失敗してもバッチは中断せず、`failed` に理由が入る。 |
inspect_image
Inspect a revision: dimensions, MIME type, byte size, alpha/ICC presence, EXIF orientation and summary, whether GPS (PII) metadata is present, luma statistics, a `sharpness` score (variance of the Laplacian - relative, so compare it against a known-good capture rather than an absolute; for documents below ~30 usually means motion blur or defocus) and a `perceptual_hash` (dHash, 16 hex digits) for telling "is this the same picture?" without comparing pixels. Set include_exif=true to also get every EXIF field as {ifd, tag, value} entries; it is off by default because the full dump can carry GPS…
| Parameter | Type | Description |
|---|---|---|
revision_id * | string | 対象 revision ID("rev_...")。 |
include_exif | boolean | EXIF 全フィールドを `info.exif` に載せるか。既定 false。 既定で落としているのはプライバシーのため: 全量には GPS 座標や 個人名が入りうるので、明ç… |
list_assets
List revisions in the workspace ledger (lineage, recipe hash, dimensions, sizes).
| Parameter | Type | Description |
|---|---|---|
asset_id | string | null | 指定した asset_id の revision だけに絞る。省略時は全件。 |
list_operations
Compact catalog of the recipe vocabulary: every operation with a one-line description and its parameter names with terse type/range hints, plus the built-in preset names. Optional `category` ("geometry" | "color" | "filter" | "output") narrows the list. Call explain_operation for the full schema of one operation. Read-only.
| Parameter | Type | Description |
|---|---|---|
category | string | null | 絞り込む分類(`"geometry"` | `"color"` | `"filter"` | `"output"`)。省略時は全件。 |
render_preview
Render a recipe as a small JPEG preview (long edge <= 768 by default) and return it inline plus a file path, so the composition can be checked before committing to apply_transform. Takes either `recipe` or `preset`, exactly like apply_transform - or NEITHER, which previews the revision as it is (use this with overlay="grid" to read crop coordinates off an image before writing a recipe). Optional `long_edge` (256..=1568) sets the preview size: raise it to 1568 when the point of the preview is to READ text in the image; 768 is too small for that. Optional `overlay` ("grid" | "thirds" | "horizon"…
| Parameter | Type | Description |
|---|---|---|
revision_id * | string | 入力 revision ID("rev_...")。 |
long_edge | integer | null | プレビューの長辺(256..=1568)。省略時は 768。 文字を読む用途では 1568 まで上げる(DESIGN.md §9.12)。 |
mask_revision_id | string | null | `overlay: "mask"` で可視化するマスク画像 revision ID。 `overlay` が `"mask"` のときのみ指定でき、そのときは必須。 |
overlay | string | null | 構図確認用のガイド線。`"grid"`(1/8 刻みの格子)| `"thirds"`(三分割法)| `"horizon"`(1/12 刻みの水平線のみ、傾き目視用)| `"mask"`(マスクの被覆可視化。 `mask_re… |
preset | string | null | ビルトインプリセット名。`recipe` とは排他。 |
recipe | object | null | 変換レシピ。`{"operations": [...]}`。`preset` とはどちらか一方のみ指定する。 |