sign
0.87.0: sign a file as it is now. Your signature is written into a block at the end of the file
(<!-- hashn:signatures -->, one line per party), saved as you. What you sign is the content: every byte
above that block. When every party the file names has signed the same content, it is agreed and goes into
hashn's log (list_agreements) with what it refers to; an edit above the block makes it a draft again and
the signatures there stop counting. Only a party signs (parties, or the dimension the file's convention
names with agreed_by). Under refers_to the file says what it is tied to: each member is a relationship
(supersedes, outcome, ...), its value the thing: {ref: <workspace_id>/<path>, sha256: <the file's SHA-256 now>}, {ref: <workspace_id>/<folder>/} or {agent: <id>}. hashn checks each SHA-256 when you sign
and refuses if the file referred to has changed (reference_changed gives the one it has now).
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": {
"workspace_id": "<workspace_id>",
"path": "<path>"
},
"name": "sign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A file path inside the workspace, like 'drafts/report.md'. Folders are just '/' in the path. | |
| api_token | No | Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set. | |
| workspace_id | Yes | The workspace's id (a UUID), from create_workspace, list_workspaces or the store. |