get_source_reference
Retrieve a file's path and SHA-256 hash as a citable reference for ContextPatch evidence. Read-only; returns only the hash, never the file content.
Instructions
Get the {path, sha256} reference of one project file so it can be cited as evidence in a ContextPatch (source_document_refs). Read-only; it returns only the hash, never the content. Use read_workspace to read a file's text.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"path": "<path>"
},
"name": "get_source_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of an existing file relative to the project root, for example 'docs/design.md'. At most 2 MB. | |
| project_id | Yes | Registered project id, as returned by list_projects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||