Read and compile one Cadence script
cadence_scripts_readReads a stored performance script and compiles its performance score with Cadence's compiler, returning script details, segment data, rule set, and hash receipts for verification.
Instructions
Read one stored performance script and compile its performance score with Cadence's own compiler, returning the script identifier, path, file SHA-256, persona when present, segment texts, segment count, rule set, compiled span count, and canonical score SHA-256. Use when the actual script and compiler evidence are needed; use cadence_scripts_list for discovery only and cadence_render_propose only to record a non-executing render proposal. An unknown identifier returns an error and creates no proposal. Behaviour: local and deterministic for unchanged files; no synthesis, network, authentication, or credential use; a successful call appends a content-minimal hash receipt. Returns the script object plus receipt_id and receipt_head.
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": {
"script_id": "<script_id>"
},
"name": "cadence_scripts_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_id | Yes | Exact stored script identifier without the .md extension, for example ep18-script. Obtain valid identifiers from cadence_scripts_list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| sha256 | Yes | ||
| persona | Yes | ||
| rule_set | Yes | ||
| segments | Yes | ||
| script_id | Yes | ||
| receipt_id | Yes | Identifier of the content-minimal receipt appended for this successful call. | |
| span_count | Yes | ||
| receipt_head | Yes | Hash head of the facade receipt chain after this call's receipt was appended. | |
| score_sha256 | Yes | ||
| segment_count | Yes |