← capabilities

Repo File-preflight

Check lightweight metadata for a path in a public GitHub repository at an optional ref. It does not clone or download large file contents.

Forest exposes this capability as a deterministic machine-readable API for software agents. Discovery is free; execution uses the canonical paid endpoint below. The live x402 challenge is the source of truth for payment terms.

$0.002 / callPOST /repo/file-preflightx402 · Base

Typical agent tasks

This capability is intended for bounded machine decisions such as:

What Forest guarantees

Boundaries

Machine contract

The request and response schemas are published in the canonical OpenAPI document. This page shows a representative input from the same production manifest.

Input example

{ "repository": "octocat/Hello-World", "path": "README", "ref": "master" }

Canonical paid endpoint

https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/repo/file-preflight

OpenAPI contract →

Related capabilities