Price private code at a buyer's published per-token rates
code_valueCounts code the way pre.dev's public script does (code files in full, text files up to 10x the code, minified and bundle-named files skipped, 4 bytes per token) and prices it at Pangea's published non-exclusive list rates per million tokens of source and of git history. Give files (path and size in bytes, e.g. from git ls-tree -r -l HEAD), or code_bytes and text_bytes, or source_tokens. History is optional. A list price, not an offer.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "code_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Files at HEAD, paths relative to the repo root. Skip rules (node_modules, vendor, build output) are applied here. | |
| code_bytes | No | Bytes of code files, if you summed them yourself. | |
| text_bytes | No | Bytes of text files (Markdown, JSON, YAML, HTML). | |
| source_tokens | No | Source tokens, if already counted. | |
| history_tokens | No | Git history tokens, if counted. |