Skip to content

CdpConnection.evalInObsidian

CdpConnection › evalInObsidian

Type: <Input extends GenericObject, Result, TContextId extends ContextId<unknown> | undefined = undefined>(
params: Except<EvalInObsidianParams<Input, Result, TContextId>, 'transport' | 'vaultPath'>
) => Promise<Result>

Evaluates a self-contained function inside Obsidian via the rich helper path, receiving { app, lib, obsidianModule, context } plus any input (shared helpers like typeIntoEditor / waitUntil live on lib). Mirrors the top-level evalInObsidian, with the transport and vault path pre-bound to this connection.