MCPcopy Index your code
hub / github.com/simstudioai/sim / extractProfileId

Function extractProfileId

apps/sim/tools/linkedin/share_post.ts:11–17  ·  view source on GitHub ↗
(output: unknown)

Source from the content-addressed store, hash-verified

9
10// Helper function to extract profile ID from various response formats
11const extractProfileId: ProfileIdExtractor = (output: unknown): string | null => {
12 if (typeof output === 'object' && output !== null) {
13 const profileOutput = output as LinkedInProfileOutput
14 return profileOutput.profile?.id || profileOutput.sub || profileOutput.id || null
15 }
16 return null
17}
18
19export const linkedInSharePostTool: ToolConfig<SharePostParams, SharePostResponse> = {
20 id: 'linkedin_share_post',

Callers 1

share_post.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected