Guide

Attachments Inspector Abilities

Batch image-mismatch scanning for AI and automation clients.

Ability index

AbilityPermissionSide effects
prc-attachments-inspector/scan-image-mismatchesedit_postsRead-only scan; paginated

Category: attachments-inspector
Meta: show_in_rest: true, MCP public tool, readonly / idempotent annotations
Source: includes/image-mismatch/class-ability.php

prc-attachments-inspector/scan-image-mismatches

Pages through published posts (default batch 50, max 50). Call again with cursor = last_id until done is true.

Reference

Input

Typed options, defaults, and constraints in one scannable reference.
3 fields
cursor number
Resume after this post ID.
batch_size number
Posts per page (1–50).
post_type string
Post type to scan.
Reference

Output

Typed options, defaults, and constraints in one scannable reference.
4 fields
results array
Affected posts from this batch.
last_id number
Cursor for the next call.
scanned number
Posts examined in this batch.
done boolean
True when no further posts remain.

CLI equivalent: wp prc attachments-inspector mismatch-report (supports --start-id, --limit, --format, and related flags).

Was this helpful?