MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getNextImagePasteId

Function getNextImagePasteId

src/services/tools/toolExecution.ts:252–262  ·  view source on GitHub ↗
(messages: Message[])

Source from the content-addressed store, hash-verified

250}
251
252function getNextImagePasteId(messages: Message[]): number {
253 let maxId = 0
254 for (const message of messages) {
255 if (message.type === 'user' && message.imagePasteIds) {
256 for (const id of message.imagePasteIds) {
257 if (id > maxId) maxId = id
258 }
259 }
260 }
261 return maxId + 1
262}
263
264export type MessageUpdateLazy<M extends Message = Message> = {
265 message: M

Callers 2

addToolResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected