tools.ts · part 1
Full reference32 text occurrences from packages/opencode/src/session/tools.ts, part 1. Every entry preserves the shipped literal and its saved verdict or selection reason.
File contents and all parts · All files
Shipped text
Lists resources provided by connected MCP servers. Resources provide context suc
Source: packages/opencode/src/session/tools.ts, characters 5102–5250, SHA-256 fb106dca76d35b13.
Jev judged model-facing (confidence 0.89; role tool). This is a classifier judgment, not proof of delivery.
Readable text: Lists resources provided by connected MCP servers. Resources provide context such as files, database schemas, or application-specific information.
Lists resources provided by connected MCP servers. Resources provide context such as files, database schemas, or application-specific information.
Optional MCP server name. When omitted, lists resources from every connected ser
Source: packages/opencode/src/session/tools.ts, characters 5460–5546, SHA-256 7cff5a5b621c1296.
Jev judged model-facing (confidence 0.81; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: Optional MCP server name. When omitted, lists resources from every connected server.
Optional MCP server name. When omitted, lists resources from every connected server.
MCP server "${parsed.server}" does not support resources
Source: packages/opencode/src/session/tools.ts, characters 6293–6351, SHA-256 ce93d85ca54a9611.
Jev judged not model-facing (confidence 0.05; role human). This is a classifier judgment, not proof of delivery.
Readable text: MCP server "${parsed.server}" does not support resources
MCP server "${parsed.server}" does not support resources
MCP server "${parsed.server}" does not support resources. Available resource ser
Source: packages/opencode/src/session/tools.ts, characters 6372–6489, SHA-256 bbd3491f78f9c50f.
Jev judged not model-facing (confidence 0.07; role human). This is a classifier judgment, not proof of delivery.
Readable text: MCP server "${parsed.server}" does not support resources. Available resource servers: ${resourceServers.join(", ")}
MCP server "${parsed.server}" does not support resources. Available resource servers: ${resourceServers.join(", ")}
MCP resources: ${parsed.server}
Source: packages/opencode/src/session/tools.ts, characters 7802–7835, SHA-256 27e49101fc50cfc2.
Jev judged not model-facing (confidence 0.17; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: MCP resources: ${parsed.server}
MCP resources: ${parsed.server}
MCP resources
Source: packages/opencode/src/session/tools.ts, characters 7838–7853, SHA-256 5e0998d5d6c32f34.
Jev judged not model-facing (confidence 0.13; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: MCP resources
MCP resources
Lists resource templates provided by connected MCP servers. Resource templates a
Source: packages/opencode/src/session/tools.ts, characters 8732–8894, SHA-256 a936ffd721187513.
Jev judged model-facing (confidence 0.83; role tool). This is a classifier judgment, not proof of delivery.
Readable text: Lists resource templates provided by connected MCP servers. Resource templates are parameterized resources that can be read after filling in their URI template.
Lists resource templates provided by connected MCP servers. Resource templates are parameterized resources that can be read after filling in their URI template.
Optional MCP server name. When omitted, lists resource templates from every conn
Source: packages/opencode/src/session/tools.ts, characters 9120–9215, SHA-256 5554637539e34600.
Jev judged not model-facing (confidence 0.78; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: Optional MCP server name. When omitted, lists resource templates from every connected server.
Optional MCP server name. When omitted, lists resource templates from every connected server.
MCP server "${parsed.server}" does not support resources · character 9962
Source: packages/opencode/src/session/tools.ts, characters 9962–10020, SHA-256 ce93d85ca54a9611.
Jev judged not model-facing (confidence 0.05; role human). This is a classifier judgment, not proof of delivery.
Readable text: MCP server "${parsed.server}" does not support resources
MCP server "${parsed.server}" does not support resources
MCP server "${parsed.server}" does not support resources. Available resource ser · character 10041
Source: packages/opencode/src/session/tools.ts, characters 10041–10158, SHA-256 bbd3491f78f9c50f.
Jev judged not model-facing (confidence 0.07; role human). This is a classifier judgment, not proof of delivery.
Readable text: MCP server "${parsed.server}" does not support resources. Available resource servers: ${resourceServers.join(", ")}
MCP server "${parsed.server}" does not support resources. Available resource servers: ${resourceServers.join(", ")}
MCP resource templates: ${parsed.server}
Source: packages/opencode/src/session/tools.ts, characters 11520–11562, SHA-256 bdb19c06f9a214fb.
Jev judged not model-facing (confidence 0.23; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: MCP resource templates: ${parsed.server}
MCP resource templates: ${parsed.server}
MCP resource templates
Source: packages/opencode/src/session/tools.ts, characters 11565–11589, SHA-256 79454a38f94638f9.
Jev judged not model-facing (confidence 0.2; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: MCP resource templates
MCP resource templates
Read a specific resource from an MCP server using the server name and resource U
Source: packages/opencode/src/session/tools.ts, characters 12468–12618, SHA-256 e3fc97dbf9b2b12a.
Jev judged model-facing (confidence 0.9; role tool). This is a classifier judgment, not proof of delivery.
Readable text: Read a specific resource from an MCP server using the server name and resource URI. The URI is an MCP identifier and does not need to be a file URL.
Read a specific resource from an MCP server using the server name and resource URI. The URI is an MCP identifier and does not need to be a file URL.
MCP server name exactly as returned by list mcp resources.
Source: packages/opencode/src/session/tools.ts, characters 12828–12888, SHA-256 435e5a09100b0104.
Jev judged model-facing (confidence 0.8; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: MCP server name exactly as returned by list_mcp_resources.
MCP server name exactly as returned by list_mcp_resources.
Resource URI to read. Use the exact URI string returned by list mcp resources.
Source: packages/opencode/src/session/tools.ts, characters 12981–13061, SHA-256 1b18e97ba37b26eb.
Jev judged model-facing (confidence 0.83; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: Resource URI to read. Use the exact URI string returned by list_mcp_resources.
Resource URI to read. Use the exact URI string returned by list_mcp_resources.
MCP server "${parsed.server}" is not connected
Source: packages/opencode/src/session/tools.ts, characters 13550–13598, SHA-256 710571c3a4ae5d69.
Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: MCP server "${parsed.server}" is not connected
MCP server "${parsed.server}" is not connected
MCP server "${parsed.server}" does not support resources · character 13706
Source: packages/opencode/src/session/tools.ts, characters 13706–13764, SHA-256 ce93d85ca54a9611.
Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: MCP server "${parsed.server}" does not support resources
MCP server "${parsed.server}" does not support resources
Failed to read MCP resource: ${parsed.server}/${parsed.uri}
Source: packages/opencode/src/session/tools.ts, characters 14372–14433, SHA-256 c80d0d8f10e8546d.
Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Failed to read MCP resource: ${parsed.server}/${parsed.uri}
Failed to read MCP resource: ${parsed.server}/${parsed.uri}
MCP resource: ${parsed.uri}
Source: packages/opencode/src/session/tools.ts, characters 14663–14692, SHA-256 945bd9051c471d11.
Jev judged not model-facing (confidence 0.16; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: MCP resource: ${parsed.uri}
MCP resource: ${parsed.uri}
Binary MCP resource omitted: ${resource.uri} (${mime}, ${formatBytes(size)}) is
Source: packages/opencode/src/session/tools.ts, characters 18376–18491, SHA-256 1aead1a2589518e9.
Jev judged not model-facing (confidence 0.22; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Binary MCP resource omitted: ${resource.uri} (${mime}, ${formatBytes(size)}) is not a supported attachment type]
[Binary MCP resource omitted: ${resource.uri} (${mime}, ${formatBytes(size)}) is not a supported attachment type]
Binary MCP resource omitted: ${resource.uri} (${mime}, ${formatBytes(size)}) ex
Source: packages/opencode/src/session/tools.ts, characters 18670–18802, SHA-256 4bfa0c9a585fd607.
Jev judged not model-facing (confidence 0.13; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Binary MCP resource omitted: ${resource.uri} (${mime}, ${formatBytes(size)}) exceeds ${formatBytes(MAX_MCP_RESOURCE_BLOB_BYTES)}]
[Binary MCP resource omitted: ${resource.uri} (${mime}, ${formatBytes(size)}) exceeds ${formatBytes(MAX_MCP_RESOURCE_BLOB_BYTES)}]
${key} must be a string
Source: packages/opencode/src/session/tools.ts, characters 20655–20680, SHA-256 82b7f90b6880434a.
Jev judged not model-facing (confidence 0.06; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${key} must be a string
${key} must be a string
${key} is required
Source: packages/opencode/src/session/tools.ts, characters 20856–20876, SHA-256 b0741d9def86851d.
Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${key} is required
${key} is required
Resource: ${itemUri} nMIME: ${mime} n${item.text}
Source: packages/opencode/src/session/tools.ts, characters 21904–21955, SHA-256 d2c5e8c5ac477aa1.
Jev judged not model-facing (confidence 0.51; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Resource: ${itemUri}\nMIME: ${mime}\n${item.text}
Resource: ${itemUri}\nMIME: ${mime}\n${item.text}
Binary MCP resource omitted: ${itemUri} (${mime}, ${formatBytes(size)}) is not
Source: packages/opencode/src/session/tools.ts, characters 22153–22263, SHA-256 37ec4ed20f538f44.
Jev judged not model-facing (confidence 0.24; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Binary MCP resource omitted: ${itemUri} (${mime}, ${formatBytes(size)}) is not a supported attachment type]
[Binary MCP resource omitted: ${itemUri} (${mime}, ${formatBytes(size)}) is not a supported attachment type]
Binary MCP resource omitted: ${itemUri} (${mime}, ${formatBytes(size)}) exceeds
Source: packages/opencode/src/session/tools.ts, characters 22377–22504, SHA-256 f2b7c23dedb76fbf.
Jev judged not model-facing (confidence 0.17; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Binary MCP resource omitted: ${itemUri} (${mime}, ${formatBytes(size)}) exceeds ${formatBytes(MAX_MCP_RESOURCE_BLOB_BYTES)}]
[Binary MCP resource omitted: ${itemUri} (${mime}, ${formatBytes(size)}) exceeds ${formatBytes(MAX_MCP_RESOURCE_BLOB_BYTES)}]
Binary MCP resource attached: ${itemUri} (${mime})
Source: packages/opencode/src/session/tools.ts, characters 22557–22611, SHA-256 38eb9f0227fbafc4.
Jev judged not model-facing (confidence 0.4; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Binary MCP resource attached: ${itemUri} (${mime})]
[Binary MCP resource attached: ${itemUri} (${mime})]
MCP resource content without text or blob: ${itemUri}
Source: packages/opencode/src/session/tools.ts, characters 22794–22851, SHA-256 834f0d1fbbfedf08.
Jev judged not model-facing (confidence 0.31; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [MCP resource content without text or blob: ${itemUri}]
[MCP resource content without text or blob: ${itemUri}]
MCP resource ${uri} from ${server} returned no contents.
Source: packages/opencode/src/session/tools.ts, characters 22945–23003, SHA-256 3c09d0b57c02c48c.
Jev judged not model-facing (confidence 0.12; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: MCP resource ${uri} from ${server} returned no contents.
MCP resource ${uri} from ${server} returned no contents.
${value} B
Source: packages/opencode/src/session/tools.ts, characters 23306–23318, SHA-256 a188b5c229442d4d.
Jev judged not model-facing (confidence 0.07; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${value} B
${value} B
${Math.ceil(value / 1024)} KB
Source: packages/opencode/src/session/tools.ts, characters 23353–23384, SHA-256 a2298ea1125bbe6e.
Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${Math.ceil(value / 1024)} KB
${Math.ceil(value / 1024)} KB
${Math.ceil(value / (1024 1024))} MB
Source: packages/opencode/src/session/tools.ts, characters 23394–23434, SHA-256 0f98a860670dc9a7.
Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${Math.ceil(value / (1024 * 1024))} MB
${Math.ceil(value / (1024 * 1024))} MB