TruthScan MCP
truthscan_mcpDetect AI-generated images with TruthScan's hosted MCP server, using a public image URL or a short-lived upload URL.
Acciones disponibles (2)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Create image upload urlTRUTHSCAN_MCP_CREATE_IMAGE_UPLOAD_URLAcciónGet a short-lived URL for uploading an image, for use when it is not already hosted at a public URL — including an image the user attached to this conversation. PUT the bytes to upload_url sending every header in required_headers exactly as given (the signature covers them; omitting one fails with SignatureDoesNotMatch). When storage_upload_url is returned, PUT the same bytes there too with storage_required_headers — that is the copy shown on the dashboard record, and skipping it leaves the record without its image. Then call detect_image with the returned file_ref. Does not consume detection credits — detect_image does.
TRUTHSCAN_MCP_CREATE_IMAGE_UPLOAD_URLAcciónGet a short-lived URL for uploading an image, for use when it is not already hosted at a public URL — including an image the user attached to this conversation. PUT the bytes to upload_url sending every header in required_headers exactly as given (the signature covers them; omitting one fails with SignatureDoesNotMatch). When storage_upload_url is returned, PUT the same bytes there too with storage_required_headers — that is the copy shown on the dashboard record, and skipping it leaves the record without its image. Then call detect_image with the returned file_ref. Does not consume detection credits — detect_image does.
Parámetros de entrada
file_namestringObligatorioOriginal file name, e.g. screenshot.png.
mime_typestring | nullImage MIME type, e.g. image/png. Used only when file_name has no recognized image extension — otherwise the extension wins, because the upload signature is derived from it.
Parámetros de salida
file_refstringObligatorioPass to detect_image once the upload succeeds.
upload_urlstringObligatorioPUT the image bytes here. Expires — upload promptly.
content_typestringObligatorioResolved image MIME type; also in required_headers.
required_headersobjectObligatorioSend all of these on the PUT, verbatim. They are covered by the URL signature, so omitting one fails the upload.
expires_in_secondsnumberObligatorioLifetime of upload_url from issue time.
storage_upload_urlstringPUT the same bytes here as well, so the image is stored on the dashboard record. Omitted when the image is not retained.
storage_required_headersobjectSend all of these on the storage PUT, verbatim.
Detect imageTRUTHSCAN_MCP_DETECT_IMAGEAcciónAnalyze an image with TruthScan's AI image detector and return the likelihood that it was AI-generated (JPG, PNG, WebP, etc.). Two ways to supply the image. (1) image_url: any direct, publicly accessible image link — TruthScan downloads it server-side and forwards it to the detector, so this works without any upload ability on your side (hosts that require login or hard-block bots may still fail). (2) file_ref: for bytes you hold locally, when your environment can make HTTP PUT requests — upload via create_image_upload_url first. If the user attached an image but your environment cannot upload bytes, ask them for a public link to it instead.
TRUTHSCAN_MCP_DETECT_IMAGEAcciónAnalyze an image with TruthScan's AI image detector and return the likelihood that it was AI-generated (JPG, PNG, WebP, etc.). Two ways to supply the image. (1) image_url: any direct, publicly accessible image link — TruthScan downloads it server-side and forwards it to the detector, so this works without any upload ability on your side (hosts that require login or hard-block bots may still fail). (2) file_ref: for bytes you hold locally, when your environment can make HTTP PUT requests — upload via create_image_upload_url first. If the user attached an image but your environment cannot upload bytes, ask them for a public link to it instead.
Parámetros de entrada
file_refstring | nullReference returned by create_image_upload_url, after uploading the image to its upload_url. Use this for local files instead of hosting them somewhere public.
image_urlanyA direct, publicly accessible image URL. TruthScan downloads it server-side (10 MB max) and forwards it to the detector, so any host that serves the file without login works; hosts that hard-block bots may still fail. Provide this OR file_ref, not both.
Parámetros de salida
is_aibooleanObligatorioWhether the image is judged AI-generated. Note this is true for digitally edited images too, so a low score with is_ai true means edited rather than generated — read verdict for which.
scorenumberObligatorioAI-likelihood score from 0 (human) to 100 (AI).
verdictstringThe detector's own wording, e.g. "AI Generated", "Not AI Generated", "Digitally Edited". More precise than is_ai; prefer it when describing the result to a user.
reasoningstringThe detector's prose explanation of its verdict.
confidencestringObligatorioConfidence label: "Low", "Medium", or "High".
detector_idstringUpstream detector job id, for reference.
dashboard_urlstringLink to the full record on the TruthScan dashboard — original image, metadata and heatmap. Share it with the user.
key_indicatorsstring[]Specific signals behind the verdict, e.g. C2PA generator metadata or synthetic lighting. Cite these instead of only reporting a number.
confidence_scorenumberNumeric confidence (0-100) the label was derived from.
detection_result_idstringSaved detection record id in the TruthScan dashboard.