tascan_get_build_diff
Store an already-computed diff for one file of a build bundle against a base commit (protocol v0.2 item 6, POST /coord/builds/:build_ref/diff — the parser has no GET for this path; a deployed function ships no git object database, so tascan-agent/deployer.js computes the diff text with its own persistent worktree and this route only validates + stores it via coord_set_artifact_diff). build_sha256 must equal the artifact's own stored sha256 or the call is refused; storing a diff replaces that file's stored full content with the diff going forward. There is currently no REST route that reads a stored diff back (GET /builds/:build_ref and /builds/:build_ref/file do not surface it) — this tool only writes one. Requires agent:dispatch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Repo-relative path from the build manifest (tascan_get_build). | |
| text | Yes | The already-computed diff text (up to 262144 characters). This tool never computes a diff itself. | |
| base_ref | Yes | The commit-ish the diff was computed against (1-200 chars). | |
| build_ref | Yes | sha256:<64 hex> (or the bare 64 hex) of the build the diff is about. | |
| truncated | No | True if text is itself a truncated diff. | |
| base_sha256 | No | Optional 64-hex sha256 of the file at base_ref. | |
| build_sha256 | Yes | 64-hex sha256 of the file at build_ref/path — must match the stored artifact's own sha256. |