MCPcopy Create free account
hub / github.com/anomalyco/opencode / pendingToolCall

Function pendingToolCall

packages/opencode/src/acp/tool.ts:124–138  ·  view source on GitHub ↗
(input: {
  readonly toolCallId: string
  readonly toolName: string
  readonly state: { readonly input: ToolInput; readonly title?: string }
  readonly cwd?: string
})

Source from the content-addressed store, hash-verified

122}
123
124export function pendingToolCall(input: {
125 readonly toolCallId: string
126 readonly toolName: string
127 readonly state: { readonly input: ToolInput; readonly title?: string }
128 readonly cwd?: string
129}): ToolCall {
130 return {
131 toolCallId: input.toolCallId,
132 title: toolTitle(input.toolName, input.state.input, input.state.title),
133 kind: toToolKind(input.toolName),
134 status: "pending",
135 locations: toLocations(input.toolName, input.state.input, input.cwd),
136 rawInput: rawInput(input.toolName, input.state.input, input.cwd),
137 }
138}
139
140export function runningToolUpdate(input: {
141 readonly toolCallId: string

Callers 3

tool.test.tsFile · 0.90
permissionToolCallFunction · 0.90
toolStartMethod · 0.90

Calls 4

toolTitleFunction · 0.85
toToolKindFunction · 0.85
toLocationsFunction · 0.85
rawInputFunction · 0.85

Tested by

no test coverage detected