MCPcopy
hub / github.com/ChromeDevTools/chrome-devtools-mcp / getTempFilePath

Function getTempFilePath

src/utils/files.ts:11–16  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

9import path from 'node:path';
10
11export async function getTempFilePath(filename: string) {
12 const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'chrome-devtools-mcp-'));
13
14 const filepath = path.join(dir, filename);
15 return filepath;
16}
17
18export function ensureExtension(
19 filepath: string,

Callers 2

saveTemporaryFileMethod · 0.85
handleResponseFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…