MCPcopy
hub / github.com/anomalyco/opencode / props

Function props

packages/opencode/src/cli/cmd/run/tool.ts:139–145  ·  view source on GitHub ↗
(frame: ToolFrame)

Source from the content-addressed store, hash-verified

137}
138
139function props<T = Tool.Info>(frame: ToolFrame): ToolProps<T> {
140 return {
141 input: Object.assign(Object.create(null), frame.input),
142 metadata: Object.assign(Object.create(null), frame.meta),
143 frame,
144 }
145}
146
147function permission<T = Tool.Info>(ctx: ToolPermissionCtx): ToolPermissionProps<T> {
148 return {

Callers 3

toolInlineInfoFunction · 0.85
toolScrollFunction · 0.85
toolSnapshotFunction · 0.85

Calls 1

createMethod · 0.65

Tested by

no test coverage detected