Function
createRemoteMcpToolCall
({
arguments: toolArguments,
name,
providerToolCallId,
remoteToolName,
serverId,
serverName,
}: CreateRemoteMcpToolCallOptions)
Source from the content-addressed store, hash-verified
| 176 | readonly webMcpOrigin: string; |
| 177 | } |
| 178 | |
| 179 | interface CreateKiloBrowserToolCallOptions { |
| 180 | readonly arguments: Record<string, unknown>; |
| 181 | readonly name: KiloBrowserToolName; |
| 182 | readonly providerToolCallId?: string; |
| 183 | readonly tabId: number; |
| 184 | } |
| 185 | |
| 186 | interface CreateToolResultOptions { |
| 187 | readonly error?: string; |
| 188 | readonly ok: boolean; |
| 189 | readonly toolCallId: string; |
| 190 | readonly value?: unknown; |
| 191 | } |
| 192 | |
| 193 | // Per-session prefix so the reset-on-reload counter never reissues a restored id. |
| 194 | const eventIdSession = crypto.randomUUID(); |
| 195 | let nextEventId = 1; |
| 196 | |
| 197 | const createEventId = (): string => { |