MCPcopy Index your code
hub / github.com/callstack/agent-device / getTextCommand

Function getTextCommand

src/commands/interaction/runtime/selector-read.ts:224–234  ·  view source on GitHub ↗
(runtime, options)

Source from the content-addressed store, hash-verified

222 GetTextCommandOptions,
223 Extract<GetCommandResult, { kind: 'text' }>
224> = async (runtime, options): Promise<Extract<GetCommandResult, { kind: 'text' }>> => {
225 const result = await getCommand(runtime, {
226 ...options,
227 property: 'text',
228 target: options.target,
229 });
230 if (result.kind !== 'text') {
231 throw new AppError('COMMAND_FAILED', 'getText returned non-text result');
232 }
233 return result;
234};
235
236export const getAttrsCommand: RuntimeCommand<
237 GetAttrsCommandOptions,

Callers

nothing calls this directly

Calls 1

getCommandFunction · 0.85

Tested by

no test coverage detected