MCPcopy Create free account
hub / github.com/Roy3838/Observer / buildImageArg

Function buildImageArg

app/src/utils/agentTemplateManager.ts:22–28  ·  view source on GitHub ↗
(ctx: SensorContext)

Source from the content-addressed store, hash-verified

20}
21
22function buildImageArg(ctx: SensorContext): string | null {
23 const vars: string[] = [];
24 if (ctx.hasScreen) vars.push('screen');
25 if (ctx.hasCamera) vars.push('camera');
26 if (vars.length === 0) return null;
27 return vars.length === 1 ? vars[0] : `[${vars.join(', ')}]`;
28}
29
30const TOOL_CODE_SNIPPETS: Record<SimpleTool, (data: ToolData, ctx: SensorContext) => string> = {
31 notification: () => `

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected