MCPcopy Create free account

hub / github.com/abi/screenshot-to-code / functions

Functions861 in github.com/abi/screenshot-to-code

↓ 2 callersFunctionprobe_screenshot_preview
Check (once, cached) whether the active backend can run here.
backend/preview_screenshot/registry.py:22
↓ 2 callersMethodprocess
( self, context: PipelineContext, next_func: Callable[[], Awaitable[None]] )
backend/routes/generate_code.py:737
↓ 2 callersFunctionprocess_image_bytes
Resize / compress image bytes to fit Claude's vision limits.
backend/agent/providers/anthropic/image.py:58
↓ 2 callersFunctionpromote_temporary_asset_id
Finalize a previously-staged temporary asset into a served asset.
backend/uploaded_assets/store.py:261
↓ 2 callersFunctionproviderBadgeClass
(provider: string)
frontend/src/components/evals/PromptReportsPage.tsx:62
↓ 2 callersMethodreceive_params
Receive parameters from the client
backend/routes/generate_code.py:225
↓ 2 callersFunctionremoveOverlay
(doc: Document | null | undefined, kind: OverlayKind)
frontend/src/components/select-and-edit/overlays.ts:122
↓ 2 callersFunctionresolveAssetIdsToDataUrls
( assetIds: string[], getAssetsById: GetAssetsById )
frontend/src/lib/prompt-history.ts:65
↓ 2 callersFunctionrewrite_css_urls
(css: str, asset_path_by_url: dict[str, str])
backend/routes/export.py:395
↓ 2 callersFunctionrunEvals
(filesToRun?: string[])
frontend/src/components/evals/RunEvalsPage.tsx:114
↓ 2 callersFunctionrun_save_assets
( args: Dict[str, Any], user_id: str | None = None, )
backend/uploaded_assets/tools.py:60
↓ 2 callersFunctionsetFavicon
(href: string)
frontend/src/components/evals/RunEvalsPage.tsx:78
↓ 2 callersFunctionsetStack
(stack: Stack)
frontend/src/components/settings/GenerationSettings.tsx:26
↓ 2 callersFunctionshowHoverOverlay
(element: HTMLElement)
frontend/src/components/select-and-edit/overlays.ts:126
↓ 2 callersFunctionshowOverlay
(element: HTMLElement, kind: OverlayKind)
frontend/src/components/select-and-edit/overlays.ts:88
↓ 2 callersFunctionshowSelectionOverlay
(element: HTMLElement)
frontend/src/components/select-and-edit/overlays.ts:138
↓ 2 callersMethodstart
(ctx: PipelineContext)
backend/routes/generate_code.py:135
↓ 2 callersFunctiontoRequestHistory
( history: VariantHistoryMessage[], getAssetsById: GetAssetsById )
frontend/src/lib/prompt-history.ts:75
↓ 2 callersMethoduploadImage
(screenshotPath: string)
frontend/src/tests/qa.test.ts:285
↓ 2 callersFunctionusePersistedState
(defaultValue: T, key: string)
frontend/src/hooks/usePersistedState.ts:5
↓ 2 callersFunctionuseThrottle
(value: string, interval = 500)
frontend/src/hooks/useThrottle.ts:6
↓ 2 callersFunctionutc_timestamp
()
backend/routes/design_systems.py:38
↓ 1 callersMethod_apply_single_edit
( self, content: str, old_text: str, new_text: str, count: Optional[in
backend/agent/tools/runtime.py:157
↓ 1 callersFunction_asset_url
(base_url: str, route: str, filename: str)
backend/uploaded_assets/store.py:60
↓ 1 callersFunction_build_headers
(api_token: str)
backend/image_generation/replicate.py:36
↓ 1 callersFunction_build_provider_turn
(state: OpenAIResponsesParseState)
backend/agent/providers/openai.py:360
↓ 1 callersFunction_coerce_box
(value: Any)
backend/asset_extraction.py:69
↓ 1 callersFunction_collapse_preview_text
(text: str, max_chars: int = 280)
backend/utils.py:79
↓ 1 callersFunction_content_type_for_extension
(extension: str)
backend/uploaded_assets/store.py:83
↓ 1 callersFunction_convert_message_to_gemini_content
( message: ChatCompletionMessageParam, )
backend/agent/providers/gemini.py:148
↓ 1 callersFunction_convert_openai_messages_to_claude
( messages: List[ChatCompletionMessageParam], )
backend/agent/providers/anthropic/provider.py:67
↓ 1 callersFunction_copy_schema
(schema: Dict[str, Any])
backend/agent/providers/openai.py:71
↓ 1 callersFunction_count_eval_files
(selected_files: List[str])
backend/routes/evals.py:199
↓ 1 callersMethod_create_file
(self, args: Dict[str, Any])
backend/agent/tools/runtime.py:98
↓ 1 callersFunction_create_schema
()
backend/agent/tools/definitions.py:8
↓ 1 callersFunction_crop_box_to_data_url
(image: Image.Image, box_2d: list[int])
backend/asset_extraction.py:84
↓ 1 callersFunction_data_url_to_source_image
(data_url: str)
backend/asset_extraction.py:23
↓ 1 callersFunction_decode_png_data_url
(data_url: str)
backend/tests/test_asset_extraction.py:24
↓ 1 callersFunction_detect_mime_type_from_base64
(base64_data: str)
backend/agent/providers/gemini.py:95
↓ 1 callersFunction_digest_for_asset_id
(asset_id: str)
backend/uploaded_assets/store.py:72
↓ 1 callersMethod_edit_image
(self, args: Dict[str, Any])
backend/agent/tools/runtime.py:396
↓ 1 callersFunction_edit_image_schema
()
backend/agent/tools/definitions.py:93
↓ 1 callersFunction_edit_schema
()
backend/agent/tools/definitions.py:25
↓ 1 callersFunction_extract_assets_schema
()
backend/agent/tools/definitions.py:129
↓ 1 callersFunction_extract_images_from_content
(content: str | List[Dict[str, Any]])
backend/agent/providers/gemini.py:118
↓ 1 callersMethod_extract_input_images
( prompt_messages: List[ChatCompletionMessageParam], )
backend/agent/engine.py:67
↓ 1 callersFunction_extract_json_object
(text: str)
backend/asset_extraction.py:47
↓ 1 callersFunction_extract_prediction_id
(response_json: Mapping[str, Any])
backend/image_generation/replicate.py:43
↓ 1 callersFunction_extract_text_from_content
(content: str | List[Dict[str, Any]])
backend/agent/providers/gemini.py:84
↓ 1 callersFunction_extract_tool_calls
(final_message: Any)
backend/agent/providers/anthropic/provider.py:181
↓ 1 callersFunction_extract_usage
Extract unified token usage from a Gemini streaming chunk. Gemini reports thinking tokens separately; they are folded into ``output`` to matc
backend/agent/providers/gemini.py:200
↓ 1 callersMethod_finalize_response
(self, assistant_text: str)
backend/agent/engine.py:273
↓ 1 callersFunction_find_first_value_difference
( left: JSONValue, right: JSONValue, path: str = "", )
backend/fs_logging/openai_input_compare.py:62
↓ 1 callersMethod_generate_diff
Generate a unified diff between old and new content.
backend/agent/tools/runtime.py:132
↓ 1 callersMethod_generate_images
(self, args: Dict[str, Any])
backend/agent/tools/runtime.py:256
↓ 1 callersFunction_get_thinking_level_for_model
(model: Llm)
backend/agent/providers/gemini.py:65
↓ 1 callersMethod_get_variant_models
Simple model cycling that scales with num_variants
backend/routes/generate_code.py:445
↓ 1 callersMethod_handle_streamed_tool_delta
( self, event: StreamEvent, started_tool_ids: set[str], streamed_lengths: Dict
backend/agent/engine.py:127
↓ 1 callersMethod_image_block
A public URL goes as a url source; local bytes go as base64.
backend/agent/providers/anthropic/provider.py:295
↓ 1 callersFunction_image_data_url_to_multimodal_part
( data_url: str, display_name: str, )
backend/agent/tools/extract_assets.py:19
↓ 1 callersMethod_image_ref
A public URL is sent as-is; local bytes become a base64 data URL.
backend/agent/providers/openai.py:467
↓ 1 callersFunction_image_schema
()
backend/agent/tools/definitions.py:61
↓ 1 callersFunction_locate_asset_box
( client: genai.Client, source_images: List[SourceImage], description: str, )
backend/asset_extraction.py:103
↓ 1 callersFunction_make_responses_schema_strict
(schema: Dict[str, Any])
backend/agent/providers/openai.py:85
↓ 1 callersFunction_parse_chunk
( chunk: types.GenerateContentResponse, state: GeminiParseState, on_event: EventSink, )
backend/agent/providers/gemini.py:226
↓ 1 callersFunction_parse_stream_event
( event: Any, state: AnthropicParseState, on_event: EventSink, )
backend/agent/providers/anthropic/provider.py:117
↓ 1 callersFunction_png_data_url
(width: int = 10, height: int = 10)
backend/tests/test_asset_extraction.py:11
↓ 1 callersFunction_poll_prediction
( client: httpx.AsyncClient, prediction_id: str, headers: dict[str, str] )
backend/image_generation/replicate.py:50
↓ 1 callersFunction_read_metadata
(asset_id: str)
backend/uploaded_assets/store.py:110
↓ 1 callersFunction_read_report_cost_usd
Read a report's usage cost without parsing the whole (possibly multi-MB, image-laden) file. ``usage`` is the last key the writer emits, so ``
backend/routes/prompt_reports.py:69
↓ 1 callersMethod_remove_background
(self, args: Dict[str, Any])
backend/agent/tools/runtime.py:321
↓ 1 callersFunction_remove_background_schema
()
backend/agent/tools/definitions.py:77
↓ 1 callersMethod_resolve_part_bytes
Gemini only accepts inline bytes, so download public URLs.
backend/agent/providers/gemini.py:353
↓ 1 callersMethod_retrieve_option
(self, args: Dict[str, Any])
backend/agent/tools/runtime.py:495
↓ 1 callersFunction_retrieve_option_schema
()
backend/agent/tools/definitions.py:155
↓ 1 callersMethod_run_variant
( self, index: int, model: Llm, prompt_messages: List[ChatCompletionMessagePar
backend/routes/generate_code.py:594
↓ 1 callersMethod_run_with_session
(self, session: ProviderSession)
backend/agent/engine.py:175
↓ 1 callersFunction_sanitize_model_name
(model_name: str)
backend/fs_logging/prompt_reports.py:44
↓ 1 callersFunction_save_assets_schema
()
backend/uploaded_assets/tools.py:19
↓ 1 callersFunction_screenshot_preview_schema
()
backend/agent/tools/definitions.py:148
↓ 1 callersMethod_stream_code_preview
(self, tool_event_id: Optional[str], content: str)
backend/agent/engine.py:105
↓ 1 callersFunction_strip_incomplete_escape
(value: str)
backend/agent/tools/parsing.py:22
↓ 1 callersFunction_summarize_report_file
(directory: str, filename: str)
backend/routes/prompt_reports.py:97
↓ 1 callersFunction_summarize_text
(value: str, limit: int = 240)
backend/uploaded_assets/tools.py:13
↓ 1 callersFunction_temporary_asset_path
(asset_id: str)
backend/uploaded_assets/store.py:129
↓ 1 callersFunction_wrap_assistant_file_content
(content: str, path: str = "index.html")
backend/prompts/message_builder.py:10
↓ 1 callersMethod_wrap_middleware
Wrap a middleware with its next function
backend/routes/generate_code.py:144
↓ 1 callersFunction_write_metadata
(asset_id: str, content_type: str, asset_base_url: str)
backend/uploaded_assets/store.py:98
↓ 1 callersMethodaccept
Accept the WebSocket connection
backend/routes/generate_code.py:164
↓ 1 callersFunctionadd_script_url_candidate
( candidates: dict[str, AssetCandidate], raw_url: str )
backend/routes/export.py:139
↓ 1 callersMethodappend_tool_results
( self, turn: ProviderTurn, executed_tool_calls: list[ExecutedToolCall], )
backend/agent/providers/base.py:44
↓ 1 callersFunctionappend_uploaded_asset_ids_to_history
( history: list[PromptHistoryMessage], asset_base_url: str, )
backend/uploaded_assets/prompts.py:52
↓ 1 callersMethodassertCodeActions
()
frontend/src/tests/qa.test.ts:345
↓ 1 callersMethodavailable
Whether this backend can run here (warming it up if needed).
backend/preview_screenshot/base.py:24
↓ 1 callersFunctionblobToBase64DataUrl
(blob: Blob)
frontend/src/components/recording/utils.ts:17
↓ 1 callersFunctionbuild_create_prompt_from_input
( input_mode: InputMode, stack: Stack, prompt: UserTurnInput, image_generation_enabled: bool,
backend/prompts/create/__init__.py:9
↓ 1 callersMethodbuild_prompt_messages
Create prompt messages
backend/routes/generate_code.py:502
↓ 1 callersFunctionbuild_replicate_input
( model: ReplicateEvalModel, prompt: str )
backend/run_image_generation_evals.py:98
↓ 1 callersFunctionbuild_text_prompt_messages
( text_prompt: str, stack: Stack, image_generation_enabled: bool, design_system: str | None =
backend/prompts/create/text.py:9
↓ 1 callersFunctionbuild_update_prompt_from_history
( stack: Stack, history: list[PromptHistoryMessage], image_generation_enabled: bool, design_sy
backend/prompts/update/from_history.py:12
← previousnext →201–300 of 861, ranked by callers